You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And flake8 --select F401 test_noqa.py gives no error. When isort is run in --profile=black mode it moves the comment somewhere that flake8 no longer recognises:
Now, flake8 counts this as an unused import, because flake8 only handles first-line or continuations. There was a ticket (https://gitlab.com/pycqa/flake8/-/issues/385) documenting this but this was closed as a duplicate of a ticket adding continuation handling, so this is still a problem.
This... sounds pretty similar to #1004 except there's no splitting involved. The pre-isort noqa example there doesn't seem to work in flake8 in my tests anyway, so I'm not sure if the intentions overlap.
Can be worked around with isort:skip on the noqa line.
flake8: 3.8.3 (mccabe: 0.6.1, pycodestyle: 2.6.0, pyflakes: 2.2.0) CPython 3.6.10`
isort: 5.4.2 (though running off develop because I needed the fix from 19221a3)
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I think this combined with the other (2?) issues around noqa comments shows some work is required in this area. isort is now part of the same organization as flake8, so maybe this is an area where the two projects can coordinate on a solution that helps our users achieve the result they want as seamlessly as possible.
Our code:
And
flake8 --select F401 test_noqa.py
gives no error. When isort is run in--profile=black
mode it moves the comment somewhere that flake8 no longer recognises:Now, flake8 counts this as an unused import, because flake8 only handles first-line or continuations. There was a ticket (https://gitlab.com/pycqa/flake8/-/issues/385) documenting this but this was closed as a duplicate of a ticket adding continuation handling, so this is still a problem.
This... sounds pretty similar to #1004 except there's no splitting involved. The pre-isort noqa example there doesn't seem to work in flake8 in my tests anyway, so I'm not sure if the intentions overlap.
Can be worked around with
isort:skip
on the noqa line.flake8: 3.8.3 (mccabe: 0.6.1, pycodestyle: 2.6.0, pyflakes: 2.2.0) CPython 3.6.10`
isort: 5.4.2 (though running off develop because I needed the fix from 19221a3)
The text was updated successfully, but these errors were encountered: