Streamlines the refactoring process by systematically updating and organizing Python import statements across a codebase when modules are relocated or renamed.
The Import Updater skill provides a structured methodology for managing complex codebase reorganizations, ensuring that every import remains functional after modules or classes are moved. It offers guidance on identifying affected files, applying consistent import patterns, and transitioning between relative and absolute imports. Beyond simple updates, the skill incorporates best practices for import organization (isort style), handles circular dependencies via TYPE_CHECKING patterns, and includes a rigorous validation checklist to prevent 'Module Not Found' errors during development.
Key Features
01Standardized Python import organization and cleanup
020 GitHub stars
03Conversion between absolute and relative import patterns
04Verification and syntax validation checklist
05Systematic module movement and renaming workflow
06Circular dependency prevention using type checking patterns
Use Cases
01Migrating from legacy relative imports to standardized absolute paths
02Restructuring a project's directory hierarchy or package organization
03Extracting classes or functions from monolithic files into separate modules