-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
32 lines (29 loc) · 978 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
# https://docs.astral.sh/ruff/configuration/
exclude = ["manage.py"]
force-exclude = true
line-length = 120
target-version = "py312"
[lint]
# Full list of available rules can be found on https://docs.astral.sh/ruff/rules/
select = [
"C4", # flake8-comprehensions
"COM", # flake8-commas
"DJ001", # flake8-django: Avoid using null=True on string-based fields such as
"DJ012", # flake8-django: Order of model's inner classes, methods, and fields
"DTZ", # flake8-datetimez
"E", # Error
"F", # Pyflakes
"I", # isort
"PTH", # flake8-use-pathlib
"RSE", # flake8-raise
"Q", # flake8-quotes
"UP009", # pyupgrade: UTF-8 encoding declaration is unnecessary
"W" # Warning
]
ignore = []
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Ignore line-too-long error in our generated codes
[lint.per-file-ignores]
"**/api/schema/*" = ["E501"]