-
Notifications
You must be signed in to change notification settings - Fork 918
/
pyproject.toml
32 lines (28 loc) · 1015 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
32
[tool.ruff]
line-length = 150
target-version = 'py39'
extend-exclude = ["docs", "assets", "static", "bedrock/externalfiles/files_cache"]
[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]
"bedrock/settings/__init__.py" = ["F405"]
"bedrock/contentful/tests/data.py" = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["bedrock", "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"]