{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"A flake8 plugin that detects and reports unnecessary import aliases, banned imports, and relative imports according to configurable rules.","skillfed_tags":["linting","import-hygiene","code-quality"],"use_cases":["Enforce a project-wide ban on deprecated modules and suggest modern replacements during code review.","Prevent accidental use of relative imports in a codebase that requires absolute imports for clarity.","Automatically flag unnecessary import aliases during linting to keep imports clean.","Configure wildcard bans on entire module hierarchies to guide developers away from old code.","Integrate import style enforcement into CI/CD pipelines via flake8 without additional tools."],"what_it_does":"flake8-tidy-imports is a flake8 plugin that enforces import hygiene by detecting three categories of import issues: unnecessary aliases (I250), banned imports (I251), and relative imports (I252). It integrates directly into flake8's linting workflow and reports violations with configurable messages. The plugin is configured via flake8's standard config files and allows you to define which imports should be banned, whether relative imports are allowed, and what messages to show when violations occur.\n\nThe plugin supports wildcard patterns in banned-modules, a special {python2to3} directive to ban Python 2 modules with suggested replacements, and fine-grained control over relative imports. It has been actively maintained since 2016 and is classified as Production/Stable with support for Python 3.9 to 3.14.","worth_installing":"Yes. The plugin is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and installs with minimal friction (one dependency). It solves a real problem\u2014enforcing import discipline\u2014and integrates seamlessly into existing flake8 workflows. Recommended for any project using flake8 that wants to enforce import policies."},"id":"flake8-tidy-imports","links":{"html":"https://skillfed.io/packages/flake8-tidy-imports","md":"https://skillfed.io/packages/flake8-tidy-imports.md","pypi":"https://pypi.org/project/flake8-tidy-imports/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-08","license_spdx":"MIT","license_treatment":"permissive","name":"flake8-tidy-imports","python_support":"supports_current","summary":"A flake8 plugin that helps you write tidier imports."},"popularity":{"monthly_downloads":461480,"position":6533,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"4.12.0"}
