initial commit

This commit is contained in:
2026-03-11 17:12:28 +08:00
commit 5d1e1cb7cb
61 changed files with 2971 additions and 0 deletions

41
pyproject.toml Normal file
View 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"