diff options
author | Nigel Babu <nigelb@redhat.com> | 2019-02-05 16:49:45 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2019-02-05 16:49:45 +0530 |
commit | 83d54da60a36fd013f16561c5e8ec26e8355efb0 (patch) | |
tree | ffe1b978ce930966940b84717db4b01711bcc21b /build-gluster-org/scripts | |
parent | c50a7b54163e46d0198742c65ae06fb0537e4eb1 (diff) |
Fix pylint errors
Change-Id: I595561c39b84bf4f98fd082b397093d1e21585c8
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r-- | build-gluster-org/scripts/python-lint.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-gluster-org/scripts/python-lint.sh b/build-gluster-org/scripts/python-lint.sh index 74fb9e1..f7df7a1 100644 --- a/build-gluster-org/scripts/python-lint.sh +++ b/build-gluster-org/scripts/python-lint.sh @@ -14,11 +14,11 @@ python3 -m venv env pip install -I flake8 pylint # run flake8 -flake8 . >"$RESULT/flake8-check.txt" +find . -path './env' -prune -o -name '*.py' -print | xargs flake8 > "$RESULT/flake8-check.txt" FLAKE_COUNT="$(wc -l < $RESULT/flake8-check.txt)" #run pylint -find . -iname "*.py" | xargs pylint --output-format=text >"$RESULT/pylint-check.txt" +find . -path './env' -print -o -name '*.py' | xargs pylint --output-format=text > "$RESULT/pylint-check.txt" PYLINT_COUNT="$(egrep -wc 'R:|C:|W:|E:|F:' $RESULT/pylint-check.txt)" #fail build if there's any pylint and flake8 related issues |