25 lines
431 B
Bash
Executable File
25 lines
431 B
Bash
Executable File
#!/bin/bash
|
|
# This file is part of curtin. See LICENSE file for copyright and license info.
|
|
|
|
pycheck_dirs=(
|
|
"console_conf/"
|
|
"subiquity/"
|
|
"subiquitycore/"
|
|
"tests/"
|
|
)
|
|
|
|
set -f
|
|
if [ $# -eq 0 ]; then
|
|
files=( "${pycheck_dirs[@]}" )
|
|
else
|
|
files=( "$@" )
|
|
fi
|
|
|
|
cmd=( "python3" -m "pyflakes" "${files[@]}" )
|
|
|
|
echo "Running: " "${cmd[@]}" 1>&2
|
|
export PYFLAKES_BUILTINS="_"
|
|
exec "${cmd[@]}"
|
|
|
|
# vi: ts=4 expandtab syntax=sh
|