-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
97 lines (82 loc) · 1.71 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
[build-system]
requires = ["setuptools>=57.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.black]
target-version = ["py38", "py39", "py310", "py311"]
[tool.ruff]
src = ["src"]
fix = true
target-version = "py38"
select = [
"B",
"C4",
"I",
"RUF",
"T20",
"TID",
"UP",
]
[tool.ruff.per-file-ignores]
"tests/**" = ["RUF012"]
[tool.ruff.isort]
known-first-party = ["src/"]
combine-as-imports = true
[tool.pytest.ini_options]
python_files = "tests.py test_*.py *_tests.py"
testpaths = ["tests"]
norecursedirs = "migrations"
[tool.coverage.paths]
source = [
"src/bananas",
"*/.tox/*/lib/*/site-packages/bananas"
]
[tool.coverage.run]
branch = true
source = ["src/", "tests/"]
[tool.coverage.report]
skip_covered = true
show_missing = true
fail_under= 94
exclude_lines = [
"pragma: no cover",
"if __name__ == .__main__.:",
# Ignore non-implementations
'^\s*\.\.\.',
"if TYPE_CHECKING:",
"raise NotImplementedError",
]
[tool.mypy]
python_version = "3.8"
show_error_codes = true
pretty = true
files = ["src", "tests", "setup.py"]
no_implicit_reexport = true
no_implicit_optional = true
strict_equality = true
strict_optional = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
ignore_missing_imports = false
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main",
]
[tool.django-stubs]
django_settings_module = "tests.conftest"
[[tool.mypy.overrides]]
module = [
"tests.*",
]
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"test.support.*",
"drf_yasg.*",
]
ignore_missing_imports = true