[ruff-0.8] [ruff] Stabilise parenthesize-chained-operators (RUF021)#14450
Merged
AlexWaygood merged 1 commit intoruff-0.8from Nov 19, 2024
Merged
[ruff-0.8] [ruff] Stabilise parenthesize-chained-operators (RUF021)#14450AlexWaygood merged 1 commit intoruff-0.8from
ruff] Stabilise parenthesize-chained-operators (RUF021)#14450AlexWaygood merged 1 commit intoruff-0.8from
Conversation
Contributor
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| RUF021 | 63 | 63 | 0 | 0 | 0 |
Linter (preview)
✅ ecosystem check detected no linter changes.
Member
Author
As expected, this impacts quite a few projects. But from a quick skim, these all look like "true positives", and I think changing the code to conform to the rule would result in more readable code in all places. |
MichaReiser
approved these changes
Nov 19, 2024
Member
MichaReiser
left a comment
There was a problem hiding this comment.
I'm not concerned that it impacts many projects, considering that there are only very few violations for each project
Merged
AlexWaygood
added a commit
that referenced
this pull request
Nov 19, 2024
MichaReiser
pushed a commit
that referenced
this pull request
Nov 20, 2024
MichaReiser
pushed a commit
that referenced
this pull request
Nov 20, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This rule has been in preview for a long time and its implementation has been stable for a long time. There are no open issues about the rule and no known issues in the implementation. The documentation seems clear.
It's an opinionated stylistic rule, but also probably a change that most people would agree with (in our subjective opinion).
Test Plan
We'll wait to see what the ecosystem check says!