-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
141 lines (122 loc) · 3.27 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pynrw"
description = "Materialien zu den zentralen NRW-Abiturprüfungen im Fach Informatik ab 2018 implementiert in Python."
keywords = [
"nrw",
"datastructures",
"datenstrukturen",
"algorithms",
"algorithmen",
"education",
"bildung",
"abitur",
]
readme = "README.md"
authors = [{ name = "realshouzy" }]
license = { text = "MIT" }
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
]
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]
[project.urls]
Source = "https://github.com/realshouzy/pynrw"
[tool.setuptools]
packages = ["nrw"]
license-files = ["LICENSE"]
platforms = ["any"]
[tool.setuptools.dynamic]
version = { attr = "nrw.__version__" }
dependencies = { file = "requirements.txt" }
[tool.black]
target-version = ["py312", "py311", "py310", "py39", "py38"]
line-length = 88
[tool.isort]
profile = "black"
[tool.mypy]
strict = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
warn_redundant_casts = true
show_error_codes = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
warn_return_any = true
strict_equality = true
no_implicit_reexport = true
no_implicit_optional = true
warn_unused_ignores = true
disable_error_code = ["union-attr"]
[[tool.mypy.overrides]]
module = "nrw.algorithms._sorting"
disable_error_code = ["attr-defined"]
[[tool.mypy.overrides]]
module = "nrw.algorithms._traversal"
disable_error_code = ["arg-type"]
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
disable_error_code = ["attr-defined"]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN101",
"D205",
"UP035",
"UP036",
"SLF001",
"FBT001",
"S101",
"PYI026",
"B905",
"S311",
]
lint.fixable = ["ALL"]
lint.unfixable = []
show-fixes = true
target-version = "py312"
line-length = 88
[tool.ruff.lint.extend-per-file-ignores]
"./tests/*_test.py" = ["SLF001", "D100", "D103", "PLR2004", "D102", "D101"]
"./tests/*.py" = ["D104"]
"./nrw/database/*.py" = ["BLE001", "PLR0913", "ARG002"]
"./nrw/database/*.pyi" = ["PLR0913"]
"./nrw/network/*.py" = ["BLE001"]
[tool.ruff.lint.isort]
known-first-party = ["nrw"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pylint]
disable = ["C0116", "R0801", "W0212", "R0903", "C0114", "I1101", "C0301"]
load-plugins = "pylint_pytest"
[tool.bandit]
skips = ["B101"]
exclude_dirs = ["tests"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["*_test.py"]
markers = ["networktest: Run network tests"]
[tool.coverage.run]
omit = ["./tests/*", "./nrw/network/*"]
plugins = ["covdefaults"]
[tool.coverage.report]
exclude_also = [
"except Exception as exception:",
"if self._connection is None:",
]
fail_under = 95