-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add yesqa-style rule against unused ignores #728
Comments
That would be a great feature indeed! Similarly to Ruff, since it's kind of a "meta" rule, maybe we could use |
I made a quick start with this last week, in which I coincidentally called it
I struggled a bit with coming up how to implement it in the reporter classes, since they rely on a location; but we do not know the location for these |
Is your feature request related to a problem? Please describe.
It's good to ensure that the ignores remain up-to-date, in particular it would be nice to ensure that unnecessary ignores are deleted.
Describe the solution you would like
My favorite solution to this type of problem is yesqa or equivalently RUF100. In particular, I'd like a new rule, like maybe
DEP005
, that fails when there exists an ignore which was never triggered.The text was updated successfully, but these errors were encountered: