Commit Graph

5 Commits

Author SHA1 Message Date
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
Lidi Zheng
40a5a655af Polish and add AsyncIO examples
* Add type annotations
* Add test for asyncio auth example
* Use dynamic stubs to allow same code runs manually and under Bazel
* Add grpcio-tools as a Bazel dependency
* asyncio.run is not yet existed in 3.6
* Improve readability
2020-12-08 13:44:43 -08:00
Richard Belleville
79611aca51 Fix up unit test 2019-08-05 17:25:16 -07:00
Lidi Zheng
7b82924066 Update module import according to name changes 2019-06-25 10:20:25 -07:00
Lidi Zheng
12c296b3dc [Python] Add authentication extension example 2019-06-24 16:39:51 -07:00