{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/3"}],"enrichment":{"capability":"Automatically reorders Python imports into a standardized format (stdlib, third-party, first-party) using static analysis, with one import per line to reduce merge conflicts.","skillfed_tags":["import-formatting","pre-commit-hook","code-quality"],"use_cases":["Enforce consistent import ordering across a team codebase via pre-commit hooks.","Automatically remove obsolete __future__ imports when upgrading to newer Python versions.","Replace compatibility library imports with modern equivalents automatically.","Reduce merge conflicts when multiple contributors add imports to the same file.","Rewrite mock and typing imports for newer Python versions automatically."],"what_it_does":"reorder-python-imports is a command-line tool that automatically reformats Python import statements according to a consistent style designed to minimize merge conflicts. It separates imports into three sections (standard library, third-party, first-party), places import statements before from imports, splits multi-item from imports into individual lines, and removes duplicates. The tool uses static analysis to understand import classification.\n\nIt integrates as a pre-commit hook or standalone CLI tool and supports options for Python version targeting (e.g., --py3-plus to remove obsolete __future__ imports), adding or removing specific imports, replacing imports with alternatives, and handling application-specific module paths. The single-import-per-line style allows multiple developers to modify imports without creating merge conflicts, even when editing the same module.","worth_installing":"Yes. Low install friction, permissive MIT license, active maintenance, no known vulnerabilities, and a focused tool that solves a real problem (merge conflicts from import changes). Use it if your team wants deterministic import ordering enforced automatically, especially via pre-commit hooks."},"id":"reorder-python-imports","links":{"html":"https://skillfed.io/packages/reorder-python-imports","md":"https://skillfed.io/packages/reorder-python-imports.md","pypi":"https://pypi.org/project/reorder-python-imports/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-10","license_spdx":null,"license_treatment":"permissive","name":"reorder-python-imports","python_support":"supports_current","summary":"Tool for reordering python imports"},"popularity":{"monthly_downloads":147672,"position":11053,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.17.0"}
