diff options
author | Nigel Babu <nigelb@redhat.com> | 2018-09-03 12:24:23 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-09-03 17:32:03 +0530 |
commit | 55f1949776a56140b3fb8247a5d680bb29359308 (patch) | |
tree | a4f57eaccedce8e5ff18f28b0b16c7f1172c3863 /build-gluster-org/scripts | |
parent | 03614883897903152688f9f6ea4deb129c8fcc6c (diff) |
Add a python-ast check as well
Change-Id: I1ac7d514b4e4022845329d423cab60f2200dc546
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r-- | build-gluster-org/scripts/python-compliance.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build-gluster-org/scripts/python-compliance.sh b/build-gluster-org/scripts/python-compliance.sh index 532170c..875ba67 100644 --- a/build-gluster-org/scripts/python-compliance.sh +++ b/build-gluster-org/scripts/python-compliance.sh @@ -1,4 +1,7 @@ #!/usr/bin/bash +./autogen.sh +./configure --disable-bd-xlator --enable-debug --enable-gnfs --silent grep -rnl '#!/usr/bin/python' | xargs pylint-3 --py3k find . -name '*.py' | xargs pylint-3 --py3k -find . -name '*.in' | xargs file | grep 'Python' | awk '{print $1}' | cut -d: -f 1 | xargs pylint-3 --py3k +find . -name '*.py' | xargs python2 /opt/qa/python_compliance.py +find . -name '*.py' | xargs python3 /opt/qa/python_compliance.py |