mirror of
https://github.com/ae-utbm/sith.git
synced 2026-09-09 14:04:36 +00:00
re-apply ruff TCH rules
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user