generated from rochacbruno/python-project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
52 lines (41 loc) · 1.17 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
[tool.ruff]
target-version = "py310"
# change the default line length number or characters.
line-length = 120
[tool.ruff.lint]
extend-select = ["C4", "E", "F", "G", "I", "NPY", "PD", "PL", "PT", "RUF", "SIM", "TCH", "W"]
[tool.ruff.lint.extend-per-file-ignores]
# Also ignore `PLR2004` (magic constants) in all test files.
"tests/**" = ["PLR2004"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_also = [
# don't complain about conditional type checking imports
"if TYPE_CHECKING:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
# Don't complain about assert_never calls, as they aren't run:
"assert_never\\(",
]
show_missing = true
skip_covered = true
skip_empty = true
# fail_under = 90
[tool.pytest.ini_options]
markers = [
"known_keys",
]
[tool.mypy]
python_version = "3.10"
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
[[tool.mypy.overrides]]
module = ["tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = ["aiotools.*", "pydot.*"]
ignore_missing_imports = true