chore: run lint and prettifier
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
[tool.ruff]
|
||||
target-version = "py311"
|
||||
line-length = 100
|
||||
exclude = [
|
||||
".git",
|
||||
".pytest_cache",
|
||||
"__pycache__",
|
||||
"node_modules",
|
||||
"bot/app/web/templates",
|
||||
]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = [
|
||||
"E", # pycodestyle errors
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
]
|
||||
ignore = [
|
||||
"E501", # line length (legacy lines; tighten later if desired)
|
||||
"E731", # lambda assignment (common in handlers)
|
||||
"E701", # multiple statements on one line (compact early returns)
|
||||
"E712", # `== True` / `== False` in SQLAlchemy filters
|
||||
"E711", # `== None` on ORM columns (use `.is_(None)` in refactors)
|
||||
"F841", # unused locals (clean up incrementally)
|
||||
]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["bot", "config", "db", "tests"]
|
||||
|
||||
[tool.ruff.format]
|
||||
quote-style = "double"
|
||||
indent-style = "space"
|
||||
skip-magic-trailing-comma = false
|
||||
line-ending = "auto"
|
||||
Reference in New Issue
Block a user