-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
31 lines (27 loc) · 941 Bytes
/
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
[tool.ruff]
line-length = 150
target-version = 'py312'
extend-exclude = ["docs", "assets", "static"]
[tool.ruff.lint]
# Set what ruff should check for.
# See https://beta.ruff.rs/docs/rules/ for a list of rules.
select = [
# TODO: Enable flake8-builtin and fix errors to fix variable name shadowing errors.
# "A", # flake8-builtin errors.
# TODO: Enable bugbear and fix errors.
# "B", # bugbear errors
"DJ", # flake8-django errors.
"E", # pycodestyle errors
"F", # pyflakes errors
"I", # import sorting
"Q", # flake8-quotes errors
"W", # pycodestyle warnings
]
[tool.ruff.lint.per-file-ignores]
"springfield/settings/__init__.py" = ["F405"]
[tool.ruff.lint.isort]
known-first-party = ["springfield", "lib", "pages"]
section-order = ["future", "standard-library", "django", "third-party", "first-party", "local-folder"]
combine-as-imports = true
[tool.ruff.lint.isort.sections]
django = ["django"]