Registry / testing / flake8-absolute-import

flake8-absolute-import

JSON →
library1.0.0.3pypypi✓ verified 81d ago

A flake8 plugin that enforces absolute imports (no relative imports). Current version 1.0.0.3, requires Python >=3.10. Stable, with irregular releases.

pip install flake8-absolute-import
INSTALL
IMPORT
SIG · FLAKE8-ABSOLUTE-IM
F
flake8-absolute-import
testingpythonv1.0.0.3
Install
1.8s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.0.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Plugin
from flake8_absolute_import import Plugin
from flake8_absolute_import import ...

After installation, flake8 automatically runs the plugin.

# install: pip install flake8-absolute-import # then run flake8 on your project: # flake8 . # The plugin will flag relative imports like: # from . import module # from ..parent import module
Debug
Known issues
gotchaThe plugin does not have any configuration options. It always enforces absolute imports with no way to exclude certain files or allow specific relative imports.
fix
If you need to allow relative imports in some cases, consider using a different plugin or disabling flake8-absolute-import for specific files via per-file-ignores in .flake8 config.
affects: all
gotchaPython version requirement: Python >=3.10 only. Will not install on older Python versions.
fix
Ensure you are using Python 3.10 or newer.
affects: all
Upgrade
Version history
1.0.0.3latest on PyPI · released Nov 28, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
flake8-absolute-import — pip install flake8-absolute-import · libregistry