Files
dragonpilot/check_code_quality.sh

13 lines
320 B
Bash
Raw Normal View History

2019-05-16 13:20:29 -07:00
#!/bin/bash
2019-10-31 17:14:40 -07:00
# Only pyflakes checks (--select=F)
flake8 --select=F $(find . -iname "*.py" | grep -vi "^\./pyextra.*" | grep -vi "^\./panda")
2019-05-16 13:20:29 -07:00
RESULT=$?
if [ $RESULT -eq 0 ]; then
pylint $(find . -iname "*.py" | grep -vi "^\./pyextra.*" | grep -vi "^\./panda")
RESULT=$? & 3
fi
[ $RESULT -ne 0 ] && exit 1
exit 0