-
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
[ruff 0.8] [flake8-annotations
] Remove deprecated rules ANN101 and ANN102
#14384
Conversation
|
dc6b535
to
4d0e735
Compare
All the errors in the ecosystem check are due to people having already explicitly ignored the rule in their |
flake8-annotations
] Remove deprecated rules ANN101 and ANN102
I feel like my main concern with merging this now is it will make the ecosystem report less useful for other PRs targeting the |
Landing that PR late in the 0.8 release process might not be enough because it means that we go blind on ecosystem checks after the 0.8 release until all ecosystem projects have updated their configurations (which may take a while). I think we have to change the ecosystem script to remove individual rules. |
Right. I added a step to the 0.8 plan which is "file PRs with other projects helping them to update to 0.8" after we've actually cut the release. But maybe even that won't be sufficient. |
I haven't checked but I worry that many projects aren't even using Ruff 0.7 at this point. That means they might have to upgrade from an arbitrary old Ruff version to 0.8, and upgrading might just not be a priority for them. |
Okay, so for the various affected projects:
So nearly all of those look like they should be fairly easy upgrades, and it looks like they try hard to keep their ruff pin up to date. The only exception is perhaps the |
I commented the same thing in #14383 (comment), but I think it's even more relevant here. Making "unknown rule ignored" a warning instead of a parsing error may help keep the ecosystem checks relevant when removing a rule. This is already a feature request there: #13505 |
That's a good point. I worry that the change is a bit more work. It would require an error resilient |
10c6a2a
to
5532cc0
Compare
4d0e735
to
458f6cd
Compare
458f6cd
to
f64e8f3
Compare
…ANN102 (#14384) Co-authored-by: Micha Reiser <[email protected]>
…ANN102 (#14384) Co-authored-by: Micha Reiser <[email protected]>
…ANN102 (#14384) Co-authored-by: Micha Reiser <[email protected]>
Summary
Remove deprecated rules ANN101 and ANN102. These have been deprecated since Ruff 0.2, released in February. There are no open issues on the tracker asking us to undeprecate them.
Test Plan
cargo test
git grep ANN101
,git grep ANN102
,git grep MissingTypeCls
andgit grep MissingTypeSelf
all show no results