Commit 881ddd73 authored by Vincent Ardisson's avatar Vincent Ardisson Committed by Vincent A

tools/pyflakes-strict: use $PYTHON3 env variable, like our pyflakes.sh

parent e57d70ea
#!/bin/sh -e
. "$(dirname $0)/common.sh"
cd "$(dirname $0)/.."
die () {
......@@ -7,15 +9,15 @@ die () {
exit 1
}
python3 -c 'import flake8' || die "Please install flake8 (e.g. apt install flake8)"
python3 -c 'import bugbear' || die "Please install flake8-bugbear (e.g. pip3 install flake8-bugbear)"
python3 -c 'import asttokens' || die "Please install asttokens (e.g. apt install python3-asttokens)"
$PYTHON3 -c 'import flake8' || die "Please install flake8 (e.g. apt install flake8)"
$PYTHON3 -c 'import bugbear' || die "Please install flake8-bugbear (e.g. pip3 install flake8-bugbear)"
$PYTHON3 -c 'import asttokens' || die "Please install asttokens (e.g. apt install python3-asttokens)"
err=0
./tools/hooks/run-flake8.py "$@" || err=1
./tools/hooks/check-ifexpr.py "$@" || err=1
./tools/hooks/check-stringcut.py "$@" || err=1
./tools/hooks/check-continuations.py "$@" || err=1
./tools/hooks/check-trailing-commas.py "$@" || err=1
./tools/hooks/check-line-length.py -l 120 "$@" || err=1
$PYTHON3 ./tools/hooks/run-flake8.py "$@" || err=1
$PYTHON3 ./tools/hooks/check-ifexpr.py "$@" || err=1
$PYTHON3 ./tools/hooks/check-stringcut.py "$@" || err=1
$PYTHON3 ./tools/hooks/check-continuations.py "$@" || err=1
$PYTHON3 ./tools/hooks/check-trailing-commas.py "$@" || err=1
$PYTHON3 ./tools/hooks/check-line-length.py -l 120 "$@" || err=1
exit $err
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment