isort
https://github.com/pycqa/isort
Python
A Python utility / library to sort imports.
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Python not yet supported2 Subscribers
Add a CodeTriage badge to isort
Help out
- Issues
- Keep a plain import that shares its line with an alias
- fix(output): make a name-level type ignore idempotent
- Fix add_imports relocating a leading isort: skip import below the sorted block
- Support multi-line import section headings and footers
- feat: remove redundant straight imports (opt-in, closes #2285)
- Track comments and trailing commas of lazy from imports separately
- fix(parse): keep statements after balancing close-paren in parenthesized imports
- fix(parse): keep statements after balancing close-paren in parenthesized imports
- Keep the grouping of commented `from` imports stable across runs
- fix(sorting): keep length_sort in length order under native sort_order
- Docs
- Python not yet supported