forked from mozilla/bedrock
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
35 lines (31 loc) · 1.09 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
[tool.ruff]
# 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
]
line-length = 150 # To match flake8
target-version = 'py39'
extend-exclude = ["__pycache__", "docs", "assets", "static", "bedrock/externalfiles/files_cache"]
[tool.ruff.per-file-ignores]
"bedrock/settings/__init__.py" = ["F405"]
"bedrock/contentful/tests/data.py" = ["E501"]
[tool.ruff.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.isort.sections]
django = ["django"]
[tool.black]
line-length = 150 # To match flake8
target-version = ['py39']
include = '\.pyi?$'