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`.
1 year ago
Richard Belleville
683b606144
Exclude venvs from formatting ( #29277 )
3 years ago
Sergii Tkachenko
18af5b31a8
Python style: update yapf to 0.30.0
4 years ago
Lidi Zheng
3d8b096c4a
Add setup.py to yapf_code check list
5 years ago
Lidi Zheng
4bb124f54f
Make yapf_code capable of making in-place changes
5 years ago
Esun Kim
e52081f903
More pythons to be formatted
5 years ago
Esun Kim
7be821ac47
Yapf all target python sources
5 years ago
Lidi Zheng
fe919dd71e
Pin to 19.3.1
5 years ago
Lidi Zheng
0404939ad0
Let our CI use the latest pip version
5 years ago
Richard Belleville
1bf7ad4714
Ensure yapf can understand asyncio
5 years ago
Lidi Zheng
66675437aa
Bump YAPF to use Python 3
5 years ago
Richard Belleville
dbad0522c3
Revert "Merge pull request #17752 from grpc/license-symlinks"
...
This reverts commit 3f8e15e2a4
, reversing
changes made to a8662121c7
.
6 years ago
Richard Belleville
140e518cfe
Avoid broken symlinks when yapfing code
6 years ago
Mehrdad Afshari
700d050500
Bump pip in yapf_virtual_environment
7 years ago
Mehrdad Afshari
d0d8ce8568
Bump pip version to 10.0.1
7 years ago
Matt Kwong
01bd0c6b19
Update pip pin from 9.0.1 to 9.0.2
7 years ago
Matt Kwong
4598eb8a7a
Update pip pin from 9.0.1 to 9.0.2
7 years ago
Mehrdad Afshari
87cd994b04
Upgrade yapf to 0.20.0
...
Upgrade yapf version to 0.20.0 and reformat Python files.
7 years ago
Ken Payson
bc1658492a
Ignore pyc files on yapf diff
7 years ago
ncteisen
848a749f7a
yapf examples/python
7 years ago
ncteisen
acbf06591e
un yapf protoc_lib_deps
7 years ago
ncteisen
5f8bf79bbf
yapf tools
7 years ago
ncteisen
888093c6ed
yapf run_tests
7 years ago
ncteisen
a69c6901f9
yapf tools/run_tests/artifacts
7 years ago
ncteisen
eb1281529a
yapf tools/run_tests/performance
7 years ago
ncteisen
0cd6cfefa0
yapf tools/run_tests/sanity
7 years ago
ncteisen
05687c3da9
yapf tools/run_tests/python_utils
7 years ago
ncteisen
173c477bd0
tools/profiling
7 years ago
ncteisen
e4bef08a8c
yapf tools/interop_matrix
7 years ago
ncteisen
7a2be20a8a
yapf tools/distrib
7 years ago
ncteisen
5898847ddf
yapf tools/codegen
7 years ago
ncteisen
26d70b1653
yapf tools/buildgen
7 years ago
ncteisen
138ee78529
yapf grpcio_tests
7 years ago
ncteisen
e2097f0cc9
yapf-ize grpc_testing
7 years ago
ncteisen
0f6c518e3c
yapf-ize grpcio_reflection
7 years ago
ncteisen
d258430bc3
yapf-ize grpcio_health_checking
7 years ago
ncteisen
128366374f
Yapf-ize grpcio/grpc_.py
7 years ago
Nathaniel Manista
8bba3bfc25
Pin pip at 9.0.1
7 years ago
Nathaniel Manista
69b7231776
gRPC Python test infrastructure
...
(The time-related first part of it, anyway.)
7 years ago
Jan Tattermusch
7897ae9308
auto-fix most of licenses
8 years ago
Nathaniel Manista
9f1e5ab3c9
Add test behavior to yapf_code.sh
...
With this change yapf_code no longer changes the code under test when
executed from within the sanity tests.
8 years ago
Nathaniel Manista
b3a1ec2111
Output diff on failed yapf sanity
8 years ago
Ken Payson
0f5e3a87c2
Ran Yapf code, pinned version
8 years ago
Ken Payson
2fa5f2f978
Re-run yapf code, and pin version
8 years ago
Nathaniel Manista
00ac6288fd
pyformat_code.sh → yapf_code.sh
...
This should have been a part of 06dea573da
.
8 years ago
Masood Malekghassemi
06dea573da
Enable running Python formatting
8 years ago
Jan Tattermusch
7dd2cc6f68
cleanup and speedup of sanity tests
8 years ago
Craig Tiller
6169d5f7b0
Update copyrights
9 years ago
murgatroid99
f656f189e4
Make sanitize script a suitable pre-commit hook
9 years ago
Craig Tiller
cb6ce54e31
Update copyrights
9 years ago