-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
128 lines (115 loc) · 1.91 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE="tin.settings"
python_files="tests.py test_*.py *_tests.py"
norecursedirs = ["media"]
[tool.black]
line-length = 100
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| media
| migrations
| secret.*
)/
'''
[tool.ruff]
exclude = [
".eggs",
".git",
".github",
".hg",
".mypy_cache",
".tox",
".venv",
".env",
"venv",
"env",
"secret",
"build",
"_build",
"buck-out",
"dist",
"media",
"migrations",
]
# show fixes made in stdout
# show-fixes = true
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-django
"DJ",
# pycodestyle
"E",
# Pyflakes
"F",
# isort
"I",
# flake8-no-pep420
"INP",
# pep8-naming
"N",
# Pylint
"PL",
# Pytest
"PT",
# pygrep hooks
"PGH",
# ruff
"RUF",
# pyupgrade
"UP",
]
ignore = [
# null=True on charfields
"DJ001",
# branching
"PLR09",
# magic number comparison
"PLR2004",
# fixtures not returning anything should have leading underscore
"PT004",
# mutable class attrs annotated as typing.ClassVar
"RUF012",
# as recommended by https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"E111",
"E114",
"E117",
"E501",
]
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
parametrize-names-type = "tuple"
parametrize-values-type = "tuple"
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"User",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
]
[tool.ruff.format]
docstring-code-format = true
line-ending = "lf"
[tool.codespell]
write-changes = true
ignore-words-list = ["num", "ans"]