Closed PeterJCLaw closed 1 year ago
This is an issue in flake8-todo
, specifically these lines need to be simply removed. (And the pycodestyle import and dependency in setup.py
can be removed too.)
flake8-todo
is checking for the existence of a #noqa
comment and not reporting the violation if present. This is an anti-pattern. flake8-todo
should simply report the violation and let flake8
filter out the #noqa
.
Please file an issue on flake8-todo
.
Aha, thanks!
Given the following code:
When running
flake8
withflake8-noqa
andflake8-todo
both installed the user is stuck having either theT000
warning about the TODO or theNQA102
. I'm guessing this is related to the behaviour previously partially discussed in https://github.com/plinss/flake8-noqa/issues/26, though slightly different.I've tried putting the noqa comment both before and after the TODO comment, neither of those works.