-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Autofix applicability #1997
Comments
Referenced this in a couple of issues that could use this functionality |
Thank you! |
Would this primarily be for autofix risk, or also, flagging violations in the first place? |
What do you mean with "flagging violations in the first place"? I think there are different factors we could possibly differentiate:
|
Right -- those are the two factors that I was trying to tease apart, though I think I was just tired and missed that the issue title is about autofixing, so any analogous concept for "How accurate is the violation detection?" would probably go by a different name. |
I think it makes sense to raise this question here. I think rules that will have many false positives should just be disabled by default and categorized (#1774) accordingly. |
Yeah, good call -- closing in favor of #4181. |
Like categorization (#1774) this is another very useful concept we can steal from Rust, see rustc_errors::Applicability.
Ideally users would be able to choose how much they want to risk when applying lints.
I think for rule applicability is even more relevant for Python than for Rust since pretty much all of the behavior of Python types can be overriden by implementing custom
__dunder__
methods.The text was updated successfully, but these errors were encountered: