summaryrefslogtreecommitdiff
path: root/tools/run-pep8
diff options
context:
space:
mode:
authorharlowja <harlowja@virtualbox.rhel>2012-07-01 12:43:33 -0700
committerharlowja <harlowja@virtualbox.rhel>2012-07-01 12:43:33 -0700
commitbae7dfccda6662a40091b92c8c85ec6c37c5268d (patch)
tree63cd29d7dc87eb7a62150ce4992e948d41a22bef /tools/run-pep8
parent346739701b2de2db2bf2065d946d611d55bc5653 (diff)
downloadvyos-cloud-init-bae7dfccda6662a40091b92c8c85ec6c37c5268d.tar.gz
vyos-cloud-init-bae7dfccda6662a40091b92c8c85ec6c37c5268d.zip
Add a nova/openstack based extension to pep8 via hacking.py
Diffstat (limited to 'tools/run-pep8')
-rwxr-xr-xtools/run-pep813
1 files changed, 10 insertions, 3 deletions
diff --git a/tools/run-pep8 b/tools/run-pep8
index e7707985..ea46c117 100755
--- a/tools/run-pep8
+++ b/tools/run-pep8
@@ -12,17 +12,24 @@ if [ $# -eq 0 ]; then
done
else
files=( "$@" );
-fi
+fi
+
+if [ -f 'hacking.py' ]
+then
+ base=`pwd`
+else
+ base=`pwd`/tools/
+fi
cmd=(
- pep8
+ ${base}/hacking.py
--ignore=E501 # Line too long (these are caught by pylint)
"${files[@]}"
)
-echo -e "\nRunning pep8:"
+echo -e "\nRunning 'cloudinit' pep8:"
echo "${cmd[@]}"
"${cmd[@]}"