initial commit
This commit is contained in:
41
pyproject.toml
Normal file
41
pyproject.toml
Normal file
@@ -0,0 +1,41 @@
|
||||
[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"
|
||||
Reference in New Issue
Block a user