-
-
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
force_to_top
no longer moves imports to top of file.
#1228
Comments
|
I'd love to have this back. During development I could simply put the |
@pmeier This is indeed a pattern I got in the habbit of following myself as well. Aiming to get this into the next minor release |
This has now been deployed to PyPI in the 5.1.0 release, Thanks again! ~Timothy |
Wonderful, thanks Timothy. I'll give this a try. By the way, you spelt "guaranteed" wrong in that section of the docs (you put "gauranteed"). |
Thanks for letting me know :) I've updated the documentation |
I think I am trying to use
force_to_top
correctly.With the latest version on PyPI an import that is part way down the file (but not inside a function) gets moved to the appropriate section at the top of the file. However, using the current master branch the import is left where it is, although it does get the appropriate comment added above it as per my
.isort.cfg
file.Is this a bug or a deliberate change in version 5?
The text was updated successfully, but these errors were encountered: