Commit e649caa4 authored by Laurent Bachelier's avatar Laurent Bachelier

Support systems with flake8 for python3 by default

parent 0fc09915
......@@ -2,9 +2,17 @@
cd $(dirname $0)
cd ..
FLAKE8=""
if which flake8 >/dev/null 2>&1; then
FLAKE8=flake8
fi
if which flake8-python2 >/dev/null 2>&1; then
FLAKE8=flake8-python2
fi
if [ -n "${FLAKE8}" ]; then
set -e
flake8 --ignore=E,W *.py assnet tests bin/*
${FLAKE8} --ignore=E,W *.py assnet tests bin/*
else
# grep will return 0 only if it founds something, but our script
# wants to return 0 when it founds nothing!
......
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