-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
new cli option: --disable-noqa #3070
Comments
We already support this internally (we use this behavior for |
Thank you! I chose |
Yeah I'd probably prefer |
Should there be a way to only disable/ignore noqa for certain error codes? For example, a codebase may want to disable using noqa for specific errors altogether. Maybe as a new config in |
I'd rather have us implement a
I think the CLI option should be called something more generic since we might want to also support |
Added in #3296. I left it as |
There are times when I want to go through the codebase and fix every error that uses a specific error code. It would be helpful to have a cli option to disable all noqa comments for a single command invoke.
For example, if I have a noqa comment for
E501
, I should be able to view all of my existing E501 errors by runningruff . --disable-noqa --select E501
The text was updated successfully, but these errors were encountered: