re-apply ruff TCH rules

This commit is contained in:
imperosol
2026-09-07 13:32:13 +02:00
parent d93afffbc3
commit 7bd79d1d55
63 changed files with 288 additions and 88 deletions
+7
View File
@@ -132,6 +132,13 @@ ignore = [
"RUF012" # mutable class attributes. This rule doesn't integrate well with django
]
[tool.ruff.lint.per-file-ignores]
# schemas and API routes are built upon ninja and pydantic,
# which heavily rely on type annotations at runtime.
# Systematically using TYPE_CHECKING blocks in those files is NOT safe
"schemas.py" = ["TCH"]
"api.py" = ["TCH"]
[tool.ruff.lint.pydocstyle]
convention = "google"