Skip to content

Commit

Permalink
Make pytype check script depends on the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
lidizheng committed Dec 11, 2019
1 parent 684c503 commit 3552872
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,11 @@ based_on_style = google

[metadata]
license_files = LICENSE

[pytype]
inputs =
src/python/grpcio/grpc/experimental
src/python/grpcio_tests/tests_aio

disable =
import-error
4 changes: 1 addition & 3 deletions tools/run_tests/sanity/check_pytype.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
JOBS=`nproc` || JOBS=4
python3 -m pip install pytype==2019.11.27

for dir in src/python/grpcio*; do
python3 -m pytype --keep-going -j "$JOBS" --strict-import $dir
done
python3 -m pytype --keep-going -j "$JOBS" --strict-import --config "setup.cfg"

0 comments on commit 3552872

Please sign in to comment.