Commit Graph

21 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
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Esun Kim e52081f903 More pythons to be formatted 2020-01-03 22:21:23 -08:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Alexander Polcyn 50fdc8ab19 add http2 server test for unary calls that uses small frames and padding 2017-03-22 13:46:51 -07:00
Eric Gribkoff 22afddf53c add health check for http2 server 2017-03-17 00:46:01 -07:00
Eric Gribkoff 95f48c154b really add _ 2017-03-17 00:46:01 -07:00
Eric Gribkoff 69e2f82169 add _ 2017-03-17 00:46:01 -07:00
Eric Gribkoff 5ae42a15cf stop http2 test server with error code when failures occur 2017-03-17 00:46:01 -07:00
Makarand Dharmapurikar 7fc6f3be56 changes to http2 test server
Not kill the server on disconnect
Spawn one server per test case
2017-01-09 10:55:51 -08:00
Eric Gribkoff 10639a68ab Merge pull request #9126 from ericgribkoff/http2_test_case_flags
Modify HTTP/2 test server's command-line arguments
2016-12-16 12:44:31 -08:00
ncteisen 65a45aebbe Add copywrite to new files 2016-12-15 14:35:17 -08:00
Eric Gribkoff b3bda54df8 Modify HTTP/2 test server to display a list of available test cases and
accept non-positional arguments.
2016-12-15 11:02:59 -08:00
Makarand Dharmapurikar 8c57917f56 fixed feedback from review 2016-12-12 13:58:15 -08:00
Makarand Dharmapurikar a16ea7f9b1 added new test (rst_during_data) 2016-12-02 10:17:03 -08:00
Makarand Dharmapurikar 5b7070a15b bugfix in rst_after_data 2016-12-01 16:56:07 -08:00
Makarand Dharmapurikar ecc32885f0 WIP 2016-12-01 15:22:50 -08:00
Makarand Dharmapurikar 4350e748e4 ability to deal with multiple streams in flight. 2016-12-01 14:24:22 -08:00
Makarand Dharmapurikar 28d198008a minor cleanup.. 2016-12-01 10:56:52 -08:00
Makarand Dharmapurikar 323bfa733d Broke up code in multiple modules.. 2016-12-01 10:51:10 -08:00
Makarand Dharmapurikar af37b809aa experimental 2016-11-29 12:28:51 -08:00