-
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
Tweak breaking groups for comprehensions #6321
Conversation
7d4a7c9
to
863e98d
Compare
PR Check ResultsBenchmarkLinux
Windows
|
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.
Please update the PR summary with the similarity index before/after your change to ensure we're improving the formatting overall, and aren't over-fitting on a single usage.
It may also be good to diff the Black/Ruff differences between the new and old ruff version, e.g. using the django project and review the changes to ensure we aren't regressing anything.
stability index (caveat: i picked the lastest run from main instead of the branch base): name: PR, main I agree with manually checking django though, i found this helpful in the past. |
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.
surprised there are no black fixtures for this
863e98d
to
7c332b2
Compare
(Reviewed manually, happy with the changes.) |
Summary
Fixes some comprehension formatting by avoiding creating the group for the comprehension itself (so that if it breaks, all parts break on their own lines, e.g. the
for
and theif
clauses).Closes #6063.
Test Plan
Bunch of new fixtures.