PyLint will not see ignore comments that come after Flake8 comments. Such as # noqa: C901 # pylint: disable=R0912,R0915
PyLint should still ignore the error by scanning through the whole line for a PyLint comment.
pylint 2.1.1
astroid 2.0.4
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
[GCC 7.3.0]
Hi, thanks for creating an issue. You can rewrite your comment something along the lines of # pylint: disable=<msg ids>; # noqa, this should make it work.
@PCManticore True, but then Flake8 will not see its comment. Both syntax checkers only look for the first comment.
What was the verdict here? Is there any way of ignore one line for both pylint and flake8?
Most helpful comment
Hi, thanks for creating an issue. You can rewrite your comment something along the lines of
# pylint: disable=<msg ids>; # noqa, this should make it work.