summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2012-07-09 13:33:26 -0400
committerScott Moser <smoser@ubuntu.com>2012-07-09 13:33:26 -0400
commitf1b72be4b4923d3effb80e1898f76ba0f81aab23 (patch)
treed01736d13c650e68976496b5df5b3b6ec6b45757 /tools
parentb2a21ed1dc682a262d55a4202c6b9606496d211f (diff)
downloadvyos-cloud-init-f1b72be4b4923d3effb80e1898f76ba0f81aab23.tar.gz
vyos-cloud-init-f1b72be4b4923d3effb80e1898f76ba0f81aab23.zip
fix tools/run-pylint to just check all python fines
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run-pylint10
1 files changed, 1 insertions, 9 deletions
diff --git a/tools/run-pylint b/tools/run-pylint
index dd6369aa..7ef44ac5 100755
--- a/tools/run-pylint
+++ b/tools/run-pylint
@@ -1,15 +1,7 @@
#!/bin/bash
-ci_files='cloud*.py 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=( $(find * -name "*.py" -type f) )
else
files=( "$@" );
fi