summaryrefslogtreecommitdiff
path: root/tools/run-pyflakes
blob: 179afebe8f38571326275f8da7cda8e559d5a5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

CR="
"
pycheck_dirs=( "cloudinit/" "tests/" "tools/" )

set -f
if [ $# -eq 0 ]; then
   files=( "${pycheck_dirs[@]}" )
else
   files=( "$@" )
fi

cmd=( "python3" -m "pyflakes" "${files[@]}" )

echo "Running: " "${cmd[@]}" 1>&2
exec "${cmd[@]}"