-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (53 loc) · 950 Bytes
/
pyproject.toml
File metadata and controls
59 lines (53 loc) · 950 Bytes
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
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "core.settings"
env = [
"DEBUG = true",
"CELERY_ALWAYS_EAGER = on",
]
python_files = "*_tests.py tests/test_*.py"
addopts = "-vrs -r fE --tb=short --reuse-db --no-migrations --disable-warnings -p no:warnings"
[tool.ruff]
line-length = 120
lint.ignore = [
'ANN101',
'ANN102',
'Q000',
'S101',
]
lint.select = [
'W',
'ARG',
'ANN',
'ASYNC',
'B',
'COM',
'C4',
'C90',
'DTZ',
'E',
'ERA',
'F',
'UP',
'T10',
'T20',
'Q',
'S',
'I',
'N',
'YTT',
'PTH',
]
lint.exclude = [
'.git',
'.mypy_cache',
'.ruff_cache',
'__pycache__',
'src/core/celery.py',
'src/manage.py',
]
lint.fixable = ["ALL"]
# Allow unused variables when underscore-prefixed.
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py311"
[tool.ruff.lint.mccabe]
max-complexity = 4