re-apply ruff TCH rules

This commit is contained in:
imperosol committed 2026-09-07 13:32:13 +02:00
1 parent d93afffbc3
commit 7bd79d1d55
63 files changed
+288 -88

No files matched your search

+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"