-
Notifications
You must be signed in to change notification settings - Fork 87
/
ruff.toml
40 lines (33 loc) · 896 Bytes
/
ruff.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
[lint]
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DJ", # flake8-django
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"INT", # flake8-gettext
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"S", # flake8-bandit
"SIM", # flake8-simplify
"W", # pycodestyle warnings
"YTT", # flake8-2020
"UP", # pyupgrade
"RUF100", # unused noqa
]
extend-ignore = [
"E501", # no line length errors
"B028"
]
fixable = ["C4", "E", "F", "I", "UP"]
exclude = ["dist","build","venv",".venv",".tox",".git", "__pycache__", "node_modules", "LC_MESSAGES", "locale"]
[lint.per-file-ignores]
"tests/**.py" = ["DJ008"]
"**/report_nightly_build_failure.py" = ["T201"]
[lint.isort]
known-first-party = ["wagtail_localize"]
lines-between-types = 1
lines-after-imports = 2
[format]
docstring-code-format = true