Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (87 loc) · 2.04 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (87 loc) · 2.04 KB
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
[tool.black]
line-length = 100
target-version = ["py313"]
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["apps"]
[tool.ruff]
line-length = 100
target-version = "py313"
exclude = ["apps/api/tests"]
[tool.ruff.lint]
select = ["F"]
[tool.pylint.'MAIN']
load-plugins = "pylint.extensions.docparams"
ignore-paths = ["^apps/api/tests/.*$"]
[tool.pylint.'BASIC']
good-names = ["id", "pk", "db", "ok"]
[tool.pylint.'MESSAGES CONTROL']
disable = [
"missing-docstring",
"invalid-name",
"too-few-public-methods",
"too-many-arguments",
"too-many-locals",
"too-many-instance-attributes",
"too-many-public-methods",
"too-many-return-statements",
"too-many-branches",
"too-many-statements",
"too-many-nested-blocks",
"duplicate-code",
"global-statement",
"missing-raises-doc",
]
[tool.pylint.'TYPECHECK']
ignored-modules = ["sqlalchemy", "sqlmodel", "pytest"]
[tool.pylint.'FORMAT']
max-line-length = 100
[tool.pyright]
include = ["apps/api"]
exclude = ["apps/api/tests"]
typeCheckingMode = "basic"
reportMissingTypeStubs = false
reportGeneralTypeIssues = "none"
reportAssignmentType = "none"
reportCallIssue = "none"
reportArgumentType = "none"
reportAttributeAccessIssue = "none"
pythonVersion = "3.13"
[tool.mypy]
python_version = "3.13"
ignore_missing_imports = true
explicit_package_bases = true
exclude = ["^apps/api/tests/"]
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
show_error_codes = true
[tool.pytest.ini_options]
testpaths = ["apps/api/tests"]
addopts = [
"--cov=apps/api",
"--cov-report=term-missing:skip-covered",
"--cov-report=xml:coverage.xml",
"--cov-branch",
"--cov-fail-under=100",
]
[tool.coverage.run]
branch = true
source = ["apps/api"]
omit = [
"*/apps/api/tests/*",
"*/apps/api/migrations/*",
"*/apps/api/**/__init__.py",
]
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = true
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[[tool.mypy.overrides]]
module = "apps.api.tests.*"
disable_error_code = ["attr-defined"]