[ruff 0.8] [flake8-annotations] Remove deprecated rules ANN101 and ANN102#14384
[ruff 0.8] [flake8-annotations] Remove deprecated rules ANN101 and ANN102#14384MichaReiser merged 2 commits intoruff-0.8from
flake8-annotations] Remove deprecated rules ANN101 and ANN102#14384Conversation
|
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. |
|
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 testgit grep ANN101,git grep ANN102,git grep MissingTypeClsandgit grep MissingTypeSelfall show no results