diff options
author | harlowja <harlowja@virtualbox.rhel> | 2012-07-01 12:43:33 -0700 |
---|---|---|
committer | harlowja <harlowja@virtualbox.rhel> | 2012-07-01 12:43:33 -0700 |
commit | bae7dfccda6662a40091b92c8c85ec6c37c5268d (patch) | |
tree | 63cd29d7dc87eb7a62150ce4992e948d41a22bef /tools/run-pep8 | |
parent | 346739701b2de2db2bf2065d946d611d55bc5653 (diff) | |
download | vyos-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-x | tools/run-pep8 | 13 |
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[@]}" |