A Flake8 and Pylama plugin that checks the ordering of import statements in Python code. It ensures imports are grouped (standard library, third-party, local) and typically alphabetized within groups, though the exact rules depend on the configured style. The current version is 0.19.2, and it maintains an active release cadence with regular updates.
pip install flake8-import-orderVerified import paths — ran on the pinned version, not inferred.
Install the plugin, then configure Flake8 to use a specific import order style and define your application's import names. Run `flake8` on your Python files to see import order violations.
Upgrade Python to 3.9 or newer, or pin `flake8-import-order<0.19.0` for older Python versions.
Add `application-import-names = your_app_name1,your_app_name2` to your Flake8 config (e.g., `.flake8` or `pyproject.toml`).
Be aware of this limitation; for edge cases, manual `noqa` comments might be necessary.
Structure your code to place imports at module scope where possible. Manual review is needed for complex conditional import patterns.