flake8-future-import
flake8-future-import copied to clipboard
Flake8 extension to check imports
This fixes a typo in README.rst. I found the typo when I was trying to use this nice plugin at PyPI.
`__init__.py` shouldn't be considered code, or at least it should be considered differently. It doesn't make sense to enforce `print_function`, `division` on a file that only contains imports, a docstring,...
Normally with flake8 I could add something like ` # noqa: FI14` to a line to get flake8 to ignore an error. For the future imports checking, it seems like...
Don't complain all the time about print, division, etc. Instead, just complain when the module in question actually uses a language feature that would be affected. Closes #1, and may...
Suppose my codebase is of this structure, it'd be nice to recursively run the script for all the .py files. - src/ - driver.py - DB/ - DBHelper.py - Analyze/...
It would be nice to force requiring `__future__.print_function` only when a `print` is found.
`flake8-future-import` uses `ast.Str` which [has been removed](https://github.com/python/cpython/pull/119563) in Python 3.14. click for example failure stack trace ``` Traceback (most recent call last): File "/media/nas/repos/sopel.git/3.14.0rc1_venv/lib/python3.14/site-packages/flake8/plugins/finder.py", line 291, in _load_plugin obj =...