-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
108 lines (95 loc) · 2.76 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tool.poetry]
name = "randfacts"
version = "0.22.0"
description = "Package to generate random facts"
authors = ["TabulateJarl8 <[email protected]>"]
license = "MIT"
readme = "README.md"
include = ["randfacts/*.txt"]
homepage = "https://tabulate.tech/software/randfacts/"
repository = "https://github.com/TabulateJarl8/randfacts"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Natural Language :: English",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = [{ include = 'randfacts' }]
[tool.poetry.scripts]
randfacts = 'randfacts.randfacts:_cli_entrypoint'
[tool.pytest.ini_options]
asyncio_default_fixture_loop_scope = "function"
[tool.pyright]
reportUnusedCallResult = false
[tool.ruff.lint]
preview = true
select = ["ALL"]
ignore = [
# complains about tab indentation
"W191",
"D206",
# adds a line break before a class docstring
"D203",
# puts the first line summary of a docstring on a different line than the """
"D213",
# tries to add a blank line after the last docstring section
"D413",
# yells at you if you use a bool typed function argument
"FBT001",
"FBT002",
# yells at you for using try-except in a for loop
"PERF203",
# allow for the use of Any
"ANN401",
# false positives for overriding methods (i think)
"PLR6301",
# disable too many branches check
"PLR0912",
# copyright at top of file
"CPY",
# complains about random.choice() not being good for cryptography
"S311",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"S101",
"ANN001",
"ANN002",
"PLC2701",
"ARG002",
"PLR2004",
"DOC",
"INP001",
"S",
]
"randfacts/randfacts.py" = ["T201"]
"randfacts/__main__.py" = ["D100"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
line-ending = "lf"
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
order-by-type = true
[tool.poetry.dependencies]
python = "^3.6"
[tool.poetry.group.dev.dependencies]
ruff = { version = "^0.7.4", python = "^3.8" }
pytest = { version = "^8.3.3", python = "^3.8" }
pytest-cov = { version = "^5.0.0", python = "^3.8" }
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"