diff options
author | Nigel Babu <nigelb@redhat.com> | 2018-07-06 12:09:32 +0530 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-08-02 12:07:44 +0000 |
commit | 9bec9c5e379a99509aaa5291b5dc2ef107f906e5 (patch) | |
tree | dd0925d65c56c7355da0ed36bd4b24610c07165e /build-gluster-org/scripts | |
parent | 8f78059bccffb35ce419eec16b4a79c222ab281a (diff) |
Add a job for python3 compliance
Change-Id: Ia3c773462fedc2b331c5de5431b3f4b428f0b3ef
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r-- | build-gluster-org/scripts/python-compliance.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/python-compliance.sh b/build-gluster-org/scripts/python-compliance.sh new file mode 100644 index 0000000..532170c --- /dev/null +++ b/build-gluster-org/scripts/python-compliance.sh @@ -0,0 +1,4 @@ +#!/usr/bin/bash +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 |