STY Enables black with experimental_string_processing=true #20412
Conversation
The doc error is being fixed here: #20410 |
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 |
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
588e08c
to
65378ac
@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 ! |
3ae7c76
into
scikit-learn:main
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: