From 454c2898a0932f6381494c485f09dd68a7c6357d Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Thu, 3 Dec 2026 09:48:08 +0100 Subject: [PATCH] Remove the F401 ignore for `__init__.py` files All re-exporting packages declare `__all__`; so, unused imports are reported there, too. --- pyproject.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 48a7273..6cbf7bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -351,8 +351,6 @@ extend-ignore = [ ] per-file-ignores = [ - # Top-levels of a sub-packages are intended to import a lot. - "**/__init__.py:F401", # Type annotations are not strictly enforced. "migrations/env.py:ANN0,ANN2", # - ANN0, ANN2 => Type annotations are not strictly enforced. @@ -733,8 +731,6 @@ external = [ [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. "migrations/env.py" = ["ANN0", "ANN2"] # - ANN0, ANN2 => Type annotations are not strictly enforced.