-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
50 lines (43 loc) · 1.2 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
[tool.ruff]
line-length = 120
extend-exclude = ['venv', 'env', 'migrations']
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle
'W', # pycodestyle
'I', # isort
'UP', # pyupgrade
'B', # flake8-bugbear
'C', # flake8-comprehensions
'DTZ', # flake8-datetimez
'DJ', # flake8-django
'RUF', # ruff
]
ignore = [
'E203', # whitespace before punctuation, conflict with black
'E501', # line too long, handled by black
'C901', # complex structure, not needed
'DJ001', # responsible usage of nullable char fields
]
[tool.ruff.lint.per-file-ignores]
'project/settings/*.py' = [
'F403', # undefined local with import star
'F405', # undefined local with import star usage
'E402', # module import not at top of file
]
'__init__.py' = [
'F401', # unused import
'E402', # module import not at top of file
]
[tool.ruff.lint.pyflakes]
extend-generics = [
'django.db.models.ForeignKey',
'django.db.models.ForeignObject',
'django.db.models.OneToOneField',
'django.db.models.Manager',
]
[tool.coverage.run]
omit = ['project/*', 'manage.py', '*/migrations/*']
[tool.pyright]
reportIncompatibleVariableOverride = false