mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 01:33:52 +08:00
* Added pyflakes and Pylint for python * Actually run linter in CI * some simple pyflakes changes * Add flake8 to panda reqs for linter test * flake8 errors are fixed * run flake8 in regression tests * meant to run flake8 * hack to ignore unused import * bug * fix bugs in tucan_loopback * Another fix by using set_safety_mode * added pylintrc file * more fixes and enabled pylint as well * Fix pylint in circleci * added linter to readme
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
|