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
--future moves specified namespace before __future__ #1463
--future moves specified namespace before __future__ #1463
Comments
In case you haven't ran into it yet, the guide for how to accomplish custom grouping like this can be seen here: https://github.com/PyCQA/isort#custom-sections-and-ordering |
Thank you; this helps in my case. I added the following lines to my configuration file:
This worked nicely. However, with existing |
Ok, I have a very nice configuration now, including custom grouping.
But, if it is not compatible with |
Right now
There are many ways to make it valid, such as forcing Thanks! ~Timothy |
I like to have compatibility packages like
six
right below the__future__
imports; therefore I tried--future six
to isort the following little example:However, because of the
--future
option, thesix
imports are put above the__future__
imports, like so:This won't compile, of course.
Nothing is allowed above
__future__
imports but comments and the module docstring (and empty lines, and other__future__
imports).The text was updated successfully, but these errors were encountered: