-
Notifications
You must be signed in to change notification settings - Fork 281
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
STY: activate flake8-comprehensions (ruff) #4444
Conversation
pre-commit.ci autofix |
1 similar comment
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
4bfb70f
to
3d60ee4
Compare
The diff ends up much bigger than I expected but it seems sound nonetheless |
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.
Assuming we indeed want this, that looks good to me :)
Same |
Thanks guys. I'm going to triage this into the 4.2 milestone because merging it before the release rather than after would avoid making backports more conflict-prone. If anyone wants to object I can also reduce the scope of this PR and reduce the diff to rules that pyupgrade used to enforce. |
Sorry, I accidentally hit the close button |
This doesn't seem to be controversial with 3 explicit approvals, but just in case, I'll leave it open for another day, and aim at merging tomorrow |
PR Summary
Follow up to #4320
Following https://gist.github.com/aureliojargas/70bd3667afd18f2a4f4e23d7ae5a2915:
Comprehension-related autofixes are not included in ruff's
UP
(pyupgrade) rule set because they are redundant with a subset of flake8-comprehensions. Here I'm choosing to activate the whole set of rules from this plugin for simplicity of configuration.