{"id":23730,"library":"flake8-absolute-import","title":"flake8-absolute-import","description":"A flake8 plugin that enforces absolute imports (no relative imports). Current version 1.0.0.3, requires Python >=3.10. Stable, with irregular releases.","status":"active","version":"1.0.0.3","language":"python","source_language":"en","source_url":"https://github.com/bskinn/flake8-absolute-import","tags":["flake8","plugin","linting","import"],"install":[{"cmd":"pip install flake8-absolute-import","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"The plugin is automatically registered; you don't need to import it manually. Usually just install and run flake8.","wrong":"import flake8_absolute_import","symbol":"flake8_absolute_import","correct":"from flake8_absolute_import import ..."}],"quickstart":{"code":"# install: pip install flake8-absolute-import\n# then run flake8 on your project:\n# flake8 .\n# The plugin will flag relative imports like:\n# from . import module\n# from ..parent import module","lang":"bash","description":"After installation, flake8 automatically runs the plugin."},"warnings":[{"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.","message":"The plugin does not have any configuration options. It always enforces absolute imports with no way to exclude certain files or allow specific relative imports.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure you are using Python 3.10 or newer.","message":"Python version requirement: Python >=3.10 only. Will not install on older Python versions.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"This plugin is automatically registered with flake8; you should not manually import it. Just run flake8.","cause":"Attempting to import a symbol that doesn't exist or using wrong import path.","error":"ImportError: cannot import name '...' from 'flake8_absolute_import'"},{"fix":"Run 'pip install flake8-absolute-import'. Ensure flake8 is also installed. Verify with 'flake8 --version' to see the plugin listed.","cause":"The plugin might not be installed or flake8 is not picking it up.","error":"flake8 error: 'absolute-import' not found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}