-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[isort] Improve import formatting configuration #4960
Comments
cc @Borda |
not strong preference, but personally
agree :] |
@Borda Thank you for your response :] Shall I wait for other core contributors' comments, or should I give it a go with |
@PyTorchLightning/core-contributors what do you think? @awaelchli 🐰 |
I don't know, I never look at import statements since it's all automated so I have no preference. |
personally I'd prefer. force_sort_within_sections=True
order_by_type=False |
@PyTorchLightning/core-contributors Any other thoughts? |
yes, but as from/import has different lengths it is not so easy to read... :/ |
🚀 Feature
Although #4242 have recently introduced isort to check and apply import formatting, I find the import order somewhat confusing, so I'd like to suggest to add the following two options to isort config
pyproject.toml
.force_sort_within_sections = 'True'
order_by_type = 'False'
Since we have applied isort to only a few files as listed in #4805, I believe we can still modify the config. Let me know your thoughts on this. (This is the same issue as Lightning-Universe/lightning-bolts#422.)
The text was updated successfully, but these errors were encountered: