Technology
categorizes imports
A VS Code extension that automatically organizes Python import statements into PEP 8-compliant logical groups.
Pretty Imports streamlines Python development by categorizing import statements into three distinct sections: direct imports (os, sys), external packages (scipy, numpy), and project-specific modules. It utilizes an AST-based approach to sort these groups by line length, ensuring your code remains readable and strictly adheres to PEP 8 standards. The tool handles complex multi-line imports within parentheses and preserves non-conforming lines at the bottom of the block to prevent data loss. By automating this housekeeping, it eliminates manual sorting and keeps dependency blocks clean across large codebases.
Related technologies
Recent Talks & Demos
Showing 1-1 of 1