-
-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to sort literals #1358
Comments
This is finished in develop and will be released in the 5.3.0 release. |
Hello @timothycrosley! Sorry for the silly question, but I'm having trouble finding how to turn this functionality on within Is it possible to turn on sorting of |
@blthayer Have you found out how to sort |
Looks like I figured it out 😉 |
isort should provide the capability to sort all common built-in non-complex literal types. Initially, it would only need to support non dynamic ones understandable by ast.literal_eval, but long term could support even complex definitions using ast parsing. Importantly the output format should be compatible with black by default and should be ran by any configured format function.
would be come:
There should be an additional option to dedup lists for the user (sets and others than are deduped within python should auto dedup):
would become:
This supersedes #392
The text was updated successfully, but these errors were encountered: