codestyle: add pylint.sh (#63120)

This commit is contained in:
Paul Marillonnet 2022-03-23 17:20:41 +01:00
parent 2f16a39a93
commit 7b4bdfab4c
1 changed files with 13 additions and 0 deletions

13
pylint.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
set -e
if [ -f /var/lib/jenkins/pylint.django.rc ]; then
PYLINT_RC=/var/lib/jenkins/pylint.django.rc
elif [ -f pylint.django.rc ]; then
PYLINT_RC=pylint.django.rc
else
echo No pylint RC found
exit 0
fi
pylint -f parseable --rcfile ${PYLINT_RC} "$@" > pylint.out || /bin/true