Remove the F401 ignore for __init__.py files

All re-exporting packages declare `__all__`;
so, unused imports are reported there, too.
This commit is contained in:
Alexander Hess 2026-12-03 09:48:08 +01:00
commit 454c2898a0
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -351,8 +351,6 @@ extend-ignore = [
] ]
per-file-ignores = [ per-file-ignores = [
# Top-levels of a sub-packages are intended to import a lot.
"**/__init__.py:F401",
# Type annotations are not strictly enforced. # Type annotations are not strictly enforced.
"migrations/env.py:ANN0,ANN2", "migrations/env.py:ANN0,ANN2",
# - ANN0, ANN2 => Type annotations are not strictly enforced. # - ANN0, ANN2 => Type annotations are not strictly enforced.
@ -733,8 +731,6 @@ external = [
[tool.ruff.lint.per-file-ignores] [tool.ruff.lint.per-file-ignores]
# Top-levels of a sub-packages are intended to import a lot.
"**/__init__.py" = ["F401"]
# Type annotations are not strictly enforced. # Type annotations are not strictly enforced.
"migrations/env.py" = ["ANN0", "ANN2"] "migrations/env.py" = ["ANN0", "ANN2"]
# - ANN0, ANN2 => Type annotations are not strictly enforced. # - ANN0, ANN2 => Type annotations are not strictly enforced.