Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Replace general Ruff F401 exclusion with per-file-ignore
A general problem with F401 is __init__.py because naturally symbols imported there merely define the package interface and aren't actually used/referenced apart from the import. Basically there are two ways to go about this: 1. Define __all__ in __init__.py (see [Importing * From a Package](https://docs.python.org/3/tutorial/modules.html#importing-from-a-package)) or 2. Add __init__.py to Ruff's per-file-ignores (see [Ruff per-file-ignores](https://docs.astral.sh/ruff/settings/#per-file-ignores)). Adding __init__.py to per-file-ignores imo is a better option here because __all__ encourages the 'from <package> import *' antipattern. Closes: #34
- Loading branch information