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: off not working #1398
Comments
Hi @chdsbd, Thanks for reporting! Thanks to your bug report, this has been fixed in develop and will make it's way out in the next release of isort. Background info: isort is very cautious with the top comment of a file, since it can contain execution information, encoding info, etc... This is a case where it still makes sense to to act off that comment, but just in case you were curious as to the why behind why it would work, except for this very specific case. Thanks! ~Timothy |
Thanks for the quick fix! |
This change has just been deployed to PyPI in version 5.5.0 Thanks! ~Timothy |
I was having trouble getting the
isort: off
comment to work. I was able to get it to work in another file, but not in this example..isort.cfg
./.venv/bin/isort main.py --diff
outputexample repository: https://github.com/chdsbd/isort-reproduction
EDIT: strangely if I add two
#
to the top of the file this issue disappears:The text was updated successfully, but these errors were encountered: