-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PyLint Ignore comments do not work if Flake8 Comment is Present #2470
Comments
Hi, thanks for creating an issue. You can rewrite your comment something along the lines of |
@PCManticore True, but then Flake8 will not see its comment. Both syntax checkers only look for the first comment. |
DevynCJohnson
added a commit
to DevynCJohnson/pylint
that referenced
this issue
Oct 7, 2018
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
DevynCJohnson
added a commit
to DevynCJohnson/pylint
that referenced
this issue
Oct 7, 2018
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
DevynCJohnson
added a commit
to DevynCJohnson/pylint
that referenced
this issue
Oct 7, 2018
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
DevynCJohnson
added a commit
to DevynCJohnson/pylint
that referenced
this issue
Oct 7, 2018
This is the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
DevynCJohnson
added a commit
to DevynCJohnson/pylint
that referenced
this issue
Oct 7, 2018
Added entry for the solution for [pylint-dev#2297](pylint-dev#2297), [pylint-dev#2470](pylint-dev#2470), and [pylint-dev#2485](pylint-dev#2485).
This was referenced Oct 7, 2018
What was the verdict here? Is there any way of ignore one line for both pylint and flake8? |
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Current behavior
PyLint will not see ignore comments that come after Flake8 comments. Such as
# noqa: C901 # pylint: disable=R0912,R0915
Expected behavior
PyLint should still ignore the error by scanning through the whole line for a PyLint comment.
pylint --version output
pylint 2.1.1 astroid 2.0.4 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0]
The text was updated successfully, but these errors were encountered: