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
Flake8 itself is picky about noqa comments, so e.g. noqa F123 or flake8 : noqa might not do what the users expect
Also e.g. a project might want to ban the usage of flake8: noqa or bare noqa comments.
As far as I'm aware of there is flake8-noqa, which hacks into the internals of flake8 which was already discussed here: #603 (comment).
Writing a plugin which verifies correct comments (1) can be done, but (2) is not possible w/o hacks, since noqa disables all errors. Therefore my feature request: can maybe flake8 directly offer this? It's maybe similar to pylint errors suppressed-message and locally-disabled. It would be a great addition to flake8. However, this basically means, that flake8 needs to implement own checks which is maybe out of scope for a framework...
The text was updated successfully, but these errors were encountered:
describe the request
noqa F123
orflake8 : noqa
might not do what the users expectflake8: noqa
or barenoqa
comments.As far as I'm aware of there is flake8-noqa, which hacks into the internals of flake8 which was already discussed here: #603 (comment).
Writing a plugin which verifies correct comments (1) can be done, but (2) is not possible w/o hacks, since
noqa
disables all errors. Therefore my feature request: can maybe flake8 directly offer this? It's maybe similar to pylint errorssuppressed-message
andlocally-disabled
. It would be a great addition to flake8. However, this basically means, that flake8 needs to implement own checks which is maybe out of scope for a framework...The text was updated successfully, but these errors were encountered: