summaryrefslogtreecommitdiff
path: root/tools/run-flake8
blob: 0021cdb9d922a9b97cdd463804328974787f6699 (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/"  "setup.py" )

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

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

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