-
-
Notifications
You must be signed in to change notification settings - Fork 46.5k
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
Enable ruff SIM102 rule #11341
Enable ruff SIM102 rule #11341
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
I actually question the value of this rule when I look these changes. Most take more lines than the original code. What do you think? |
1 similar comment
I actually question the value of this rule when I look these changes. Most take more lines than the original code. What do you think? |
I'm generally neutral to both options, so I'm ready to accept any of them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let’s go for it…
* Enable ruff SIM102 rule * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Describe your change:
Enable ruff
SIM102
ruleChecklist: