42 lines
775 B
TOML
42 lines
775 B
TOML
[tool.ruff]
|
|
target-version = "py314"
|
|
line-length = 120
|
|
extend-exclude = [
|
|
".venv",
|
|
"static",
|
|
"logs",
|
|
"migrations",
|
|
]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"W", # pycodestyle warnings
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
"B", # flake8-bugbear
|
|
"C4", # flake8-comprehensions
|
|
"UP", # pyupgrade
|
|
"DJ", # ruff-django
|
|
"SIM", # simplify code
|
|
"T20", # catch stray print()
|
|
]
|
|
fixable = ["ALL"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = [
|
|
"config",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"**/migrations/*.py" = ["E501", "F401"]
|
|
"**/settings/*.py" = ["E501"]
|
|
"manage.py" = ["E402"]
|
|
"config/asgi.py" = ["E402"]
|
|
"config/settings/*.py" = ["E402", "F403"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
line-ending = "lf"
|