tox.ini: add pylint run (#30079)

This commit is contained in:
Benjamin Dauvergne 2019-01-24 16:40:27 +01:00
parent 7d517113d7
commit 0ce876f8bb
2 changed files with 14 additions and 0 deletions

13
pylint.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e -x
env
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} "$@" | tee pylint.out || /bin/true

View File

@ -45,4 +45,5 @@ deps =
http://git.entrouvert.org/authentic2-auth-fc.git/snapshot/authentic2-auth-fc-master.tar.gz
commands =
./getlasso.sh
dj18: ./pylint.sh src/authentic2_cut
py.test {env:FAST:} {env:COVERAGE:} {posargs:tests/}