We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given foo.py with incorrectly sorted imports:
foo.py
#!/usr/bin/env python from __future__ import print_function import logging print('hello')
The latest isort moves the __future__ import above the shebang
__future__
$ isort --version && isort --diff foo.py /#######################################################################\ `sMMy` .yyyy- ` ##soos## ./o. ` ``..-..` ``...`.`` ` ```` ``-ssso``` .s:-y- .+osssssso/. ./ossss+:so+:` :+o-`/osso:+sssssssso/ .s::y- osss+.``.`` -ssss+-.`-ossso` ssssso/::..::+ssss:::. .s::y- /ssss+//:-.` `ssss+ `ssss+ sssso` :ssss` .s::y- `-/+oossssso/ `ssss/ sssso ssss/ :ssss` .y-/y- ````:ssss` ossso. :ssss: ssss/ :ssss. `/so:` `-//::/osss+ `+ssss+-/ossso: /sso- `osssso/. \/ `-/oooo++/- .:/++:/++/-` .. `://++/. isort your Python imports for you so you don't have to VERSION 4.2.9 \########################################################################/ --- /Users/andy/.virtualenvs/tmp-147c493166eebf46/foo.py:before 2017-06-01 08:34:24 +++ /Users/andy/.virtualenvs/tmp-147c493166eebf46/foo.py:after 2017-06-01 08:35:56.407646 @@ -1,5 +1,7 @@ + +from __future__ import print_function + #!/usr/bin/env python -from __future__ import print_function import logging print('hello')
The text was updated successfully, but these errors were encountered:
Implement a fix for issue #545
0b133dc
Thanks for reporting this major issue!
I have pushed out a hotfix release: 4.2.11 that resolves it.
4.2.11
Thanks!
~Timothy
Sorry, something went wrong.
No branches or pull requests
Given
foo.py
with incorrectly sorted imports:The latest isort moves the
__future__
import above the shebangThe text was updated successfully, but these errors were encountered: