diff options
author | Craig Tiller <ctiller@google.com> | 2017-06-06 15:57:09 +0000 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-06-06 15:57:09 +0000 |
commit | a0115beac326a079f9d11277138b14fcb67ba73f (patch) | |
tree | c721108e3576a485c2050427ec5be7315399d6c0 /tools/distrib/pylint_code.sh | |
parent | 27cb323c5941146202853dd6e30fda30760c6acf (diff) | |
parent | b1332047d049d788a59284a561f4d6c2c2488792 (diff) |
Merge github.com:grpc/grpc into faster_timer_pool
Diffstat (limited to 'tools/distrib/pylint_code.sh')
-rwxr-xr-x | tools/distrib/pylint_code.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/distrib/pylint_code.sh b/tools/distrib/pylint_code.sh index 6369e605d5..b1e305c56d 100755 --- a/tools/distrib/pylint_code.sh +++ b/tools/distrib/pylint_code.sh @@ -31,18 +31,22 @@ set -ex # change to root directory -cd $(dirname $0)/../.. +cd "$(dirname "$0")/../.." -DIRS=src/python/grpcio/grpc +DIRS=( + 'src/python/grpcio/grpc' + 'src/python/grpcio_reflection/grpc_reflection' + 'src/python/grpcio_health_checking/grpc_health' +) VIRTUALENV=python_pylint_venv virtualenv $VIRTUALENV -PYTHON=`realpath $VIRTUALENV/bin/python` +PYTHON=$(realpath $VIRTUALENV/bin/python) $PYTHON -m pip install pylint==1.6.5 -for dir in $DIRS; do - $PYTHON -m pylint --rcfile=.pylintrc -rn $dir || exit $? +for dir in "${DIRS[@]}"; do + $PYTHON -m pylint --rcfile=.pylintrc -rn "$dir" || exit $? done exit 0 |