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 supported3 Subscribers
Add a CodeTriage badge to isort
Help out
- Issues
- docs: explain comment handling during sorting
- Docs: mention MegaLinter on the GitHub Action page
- Preserve LF stdin output on Windows
- Group plain imports
- Deprecate inspection of shebang lines to determine if file is supported
- Preserve trailing-comma layout when sorting reexports
- Compile with `mypyc`
- fix: keep comment-only lines inside from-import groups
- `--sort-reexports` does not retain trailing commas in short `__all__` exports
- Feature Request: add support for global config using $XDG_CONFIG_HOME
- Docs
- Python not yet supported