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
9 lines
263 B
Bash
Executable File
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
|