-
-
Notifications
You must be signed in to change notification settings - Fork 25.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
STY Enables black with experimental_string_processing=true #20412
Conversation
The doc error is being fixed here: #20410 |
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.
I did a manual review of ~30 files at random and could not spot any issue. It generally improves things a lot. I think we can trust the tests for this change to be correct. Doing a full review of this diff is going to be tedious.
Note: there plenty of cases where the code could be even cleaner / simpler by using f-strings instead of .format()
or %
-based string interpolation but this can be improved progressively later.
Yes, if we are into such automatic code changes, running pyupgrade on the code would perform a migration to f-strings. But then this means that such tooling would also need to be available for people solving PR merge conflicts, so what's a good compromise there remains to be determined. Maybe something we can talk about at the meeting. |
Edit: #20410 was merged. I think you should rebase this on top of Edit2: actually there are conflicts, so the black step should be re-run :) |
c5e84b8
to
588e08c
Compare
588e08c
to
65378ac
Compare
@rth shall we merge this one? The CI is green and there are no conflicts but it won't last long I think. |
Yes, thanks @thomasjpfan ! |
Reference Issues/PRs
Resolves #20365
What does this implement/fix? Explain your changes.
This should be merged with the "rebase and merge" option to keep the two commits separate: