Files
openpilot-evo/panda/tests/linter_python/flake8_panda.sh
T
Vehicle Researcher 9c2632d9d1 Merge commit 'cd1dd25e640dffec732f3f58fbd9b336d7bf91b6' as 'panda'
old-commit-hash: af301ad7b5cb6cc5c38725082acab3eecab19c29
2020-01-15 14:04:42 -08:00

9 lines
263 B
Bash
Executable File

#!/usr/bin/env bash
RESULT=$(python3 -m flake8 --select=F $(find ../../ -type f | grep -v "/boardesp/" | grep -v "/cppcheck/" | grep "\.py$"))
if [[ $RESULT ]]; then
echo "Pyflakes found errors in the code. Please fix and try again"
echo "$RESULT"
exit 1
fi