nopenpilot/opendbc/can/tests/linter_python/pylint_opendbc.sh

12 lines
244 B
Bash
Executable File

#!/usr/bin/env bash
python3 -m pylint --disable=R,C,W $(find ../../../ -type f | grep "\.py$")
exit_status=$?
(( res = exit_status & 3 ))
if [[ $res != 0 ]]; then
echo "Pylint found errors in the code. Please fix and try again"
exit 1
fi