generated from MaksimZayats/aiogram-django-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
93 lines (79 loc) · 2.11 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
[tool.black]
line-length = 90
[tool.isort]
profile = "black"
line_length = 90
[tool.flakeheaven]
max_line_length = 95
exclude = [
"venv",
"migrations",
"manage.py",
]
[tool.flakeheaven.plugins]
pyflakes = [
"+*",
]
pycodestyle = [
"+*",
]
pylint = [
"+*",
"-C011?", # Missing ? docstring (missing-?-docstring)
"-E1101", # Class 'AnyModel' has no 'objects' member (no-member)
"-W0611", # Duplicate of "F401" (unused-import)
"-R0903", # Too few public methods (?/2) (too-few-public-methods)
]
[tool.pylint."BASIC"]
load-plugins = [
"perflint",
]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports_per_module = true
ignore_missing_imports = true
warn_return_any = true
warn_unused_configs = true
strict = true
implicit_reexport = true
plugins = [
"mypy_django_plugin.main",
]
exclude = [
"venv",
"migrations",
]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "--exitfirst -vv --cov --cov-report=html --cov-fail-under=90"
testpaths = [
"tests",
]
# ↓ Django specific configuration
[tool.django-stubs]
django_settings_module = "app.config.settings"
[tool.flakeheaven.exceptions."*/config/application.py"]
pylint = [
"-W8301", # Use tuple instead of list for a non-mutated sequence (use-tuple-over-list)
]
[tool.flakeheaven.exceptions."*/config/web.py"]
pylint = [
"-W8301", # Use tuple instead of list for a non-mutated sequence (use-tuple-over-list)
]
[tool.flakeheaven.exceptions."*/apps.py"]
pylint = [
"-C0415", # Import outside toplevel (app.?.web.admin) (import-outside-toplevel)
]
[tool.flakeheaven.exceptions."*/web/urls.py"]
pylint = [
"-W8301", # Use tuple instead of list for a non-mutated sequence (use-tuple-over-list)
]
[tool.flakeheaven.exceptions."*/web/admin.py"]
pylint = [
"-E1136", # Value 'ModelAdmin' is unsubscriptable (unsubscriptable-object)
"-R0903", # Too few public methods (too-few-public-methods)
]
[tool.flakeheaven.exceptions."*/models.py"]
pylint = [
"-R0903", # Too few public methods (too-few-public-methods)
]