mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-10 02:03:42 +08:00
70ddf6fd84
old-commit-hash: 97a289e6a974f7e0f3f5ae91cc91626181462bb3
12 lines
287 B
Bash
Executable File
12 lines
287 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
python3 -m pylint --disable=R,C,W $(find ../../ -type f | grep -v "/boardesp/" | grep -v "/cppcheck/" | 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
|