Replace custom action by shell script

This commit is contained in:
Jean-Michel Picod
2020-02-28 15:52:09 +01:00
parent 47c523e959
commit 19056abbf3
5 changed files with 19 additions and 67 deletions

18
tools/run_pylint.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
SUCCESS=0
# Ensure we are at the project root directory
cd $(readlink -f $(dirname $0))/..
for file in `find . ! -path "./third_party/*" -type f -name '*.py'`
do
# Output header for our custom matcher on Github workflow
echo "PYLINT:${file}"
if ! pylint --rcfile=.pylintrc --score=n "$file"
then
SUCCESS=1
fi
done
exit $SUCCESS