summaryrefslogtreecommitdiff
path: root/tools/run-pep8
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-01-24 14:47:28 -0500
committerScott Moser <smoser@ubuntu.com>2014-01-24 14:47:28 -0500
commitc92cd051a1d598f83de03c4135c800b17fd46a9a (patch)
tree29f0f5a19b933576c1962f86eeab27658639df46 /tools/run-pep8
parentb37125d7d33ee03b88ad65a0b6930c79c79e9a87 (diff)
downloadvyos-cloud-init-c92cd051a1d598f83de03c4135c800b17fd46a9a.tar.gz
vyos-cloud-init-c92cd051a1d598f83de03c4135c800b17fd46a9a.zip
pep8/pylint fixes
tools/run-pep8 wasn't checking all python files. tools/run-pylint wasnt checking bin/cloud-init fixed resultant pep8 issues after finding them.
Diffstat (limited to 'tools/run-pep8')
-rwxr-xr-xtools/run-pep811
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/run-pep8 b/tools/run-pep8
index 20e594bc..cfce5edd 100755
--- a/tools/run-pep8
+++ b/tools/run-pep8
@@ -1,15 +1,7 @@
#!/bin/bash
-ci_files='cloudinit/*.py cloudinit/config/*.py'
-test_files=$(find tests -name "*.py")
-def_files="$ci_files $test_files"
-
if [ $# -eq 0 ]; then
- files=( )
- for f in $def_files; do
- [ -f "$f" ] || { echo "failed, $f not a file" 1>&2; exit 1; }
- files[${#files[@]}]=${f}
- done
+ files=( bin/cloud-init $(find * -name "*.py" -type f) )
else
files=( "$@" );
fi
@@ -44,4 +36,3 @@ cmd=(
echo -e "\nRunning 'cloudinit' pep8:"
echo "${cmd[@]}"
"${cmd[@]}"
-