diff -r 64268e87613e -r c76d4be6f438 tests/tools/check_source.sh --- a/tests/tools/check_source.sh Wed May 23 10:53:57 2018 +0200 +++ b/tests/tools/check_source.sh Wed May 23 20:22:45 2018 +0200 @@ -34,9 +34,11 @@ compile_checks() { - echo "Syntax checking..." + echo "Syntax checking using python ..." py_files=$(find . -name '*.py') + python --version + # remove compiled Python files find . -name '*.pyc' -exec rm -f {} \; @@ -48,6 +50,8 @@ set_exit_error fi done + echo "DONE" + echo "" } # pep8 was renamed to pycodestyle @@ -60,6 +64,8 @@ echo "pep8/pycodestyle is not found" set_exit_error fi + echo -n "pep8 version: " + $pep8 --version } pep8_checks_default() @@ -91,6 +97,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } @@ -159,6 +168,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } flake8_checks() @@ -172,10 +184,16 @@ return fi + echo -n "flake8 version: " + flake8 --version + flake8 --max-line-length=300 --exclude=build --builtins="_" ./ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } pylint_checks() @@ -188,6 +206,7 @@ set_exit_error return fi + pylint --version export PYTHONPATH="$PWD/../CanFestival-3/objdictgen":$PYTHONPATH @@ -291,6 +310,9 @@ if [ $? -ne 0 ]; then set_exit_error fi + + echo "DONE" + echo "" } main()