Commit Graph

5 Commits

Author SHA1 Message Date
Sergii Tkachenko de6ed9ba9f
[Python] Migrate from yapf to black (#33138)
- Switched  from yapf to black
- Reconfigure isort for black
- Resolve black/pylint idiosyncrasies 

Note: I used `--experimental-string-processing` because black was
producing "implicit string concatenation", similar to what described
here: https://github.com/psf/black/issues/1837. While currently this
feature is experimental, it will be enabled by default:
https://github.com/psf/black/issues/2188. After running black with the
new string processing so that the generated code merges these `"hello" "
world"` strings concatenations, then I removed
`--experimental-string-processing` for stability, and regenerated the
code again.

To the reviewer: don't even try to open "Files Changed" tab 😄 It's
better to review commit-by-commit, and ignore `run black and isort`.
2023-06-09 15:08:55 -07:00
Richard Belleville a48067c4c8
Replace StopIteration with return (#26861) 2021-08-03 11:08:31 -07:00
Richard Belleville 805afe647d Copyright typo 2019-07-08 11:42:21 -07:00
Richard Belleville ba39c9255c Adopt reviewer's comments 2019-07-08 10:00:36 -07:00
Richard Belleville 7fa7f932e3 Pull search algorithm out into another module 2019-06-26 09:32:58 -07:00