Add a rule-specific equivalent of the --ignore-noqa
flag
#13341
Labels
cli
Related to the command-line interface
--ignore-noqa
flag
#13341
Some linter rules are advisory: they warn about a code pattern which is usually bad, but sometimes it's better for the code (or at least the project) if you slap on a
# noqa
and keep going.And some other linter rules are there to warn you against introducing subtle, non-local correctness issues which can lead whole teams to lose their sleep debugging something that should never have happened. (e.g.
ASYNC101
warning against PEP-789)Currently, the only way to ensure that nobody unknowingly suppresses a warning in the latter category is to maintain an entire second configuration, select the subset of rules you want, and then execute a whole independent process to check all your code again. Credit to
ruff
that it's fast enough to do that, but I still feel it'd be a lot more elegant to accept anignore-noqa-rules
config option and do it in one run!If this does get implemented, I promise I'll use this new power for good and not evil 😉
The text was updated successfully, but these errors were encountered: