Tweak breaking groups for comprehensions#6321
Conversation
7d4a7c9 to
863e98d
Compare
PR Check ResultsBenchmarkLinuxWindows |
MichaReiser
left a comment
There was a problem hiding this comment.
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. |
konstin
left a comment
There was a problem hiding this comment.
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
forand theifclauses).Closes #6063.
Test Plan
Bunch of new fixtures.