diff --git a/scripts/checkcode.sh b/scripts/checkcode.sh new file mode 100755 index 0000000..56ff573 --- /dev/null +++ b/scripts/checkcode.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +ERROR=0 + +echo "Checking with pep8" +pep8 $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 1) + +echo "Checking with pylint" +pylint $1/*.py $1/*/*.py || ERROR=$(expr $ERROR + 2) + +exit $ERROR