tox.ini: run pylint (#32961)

This commit is contained in:
Benjamin Dauvergne 2019-05-10 12:42:29 +02:00
parent 9c3951ceeb
commit 7a0d5719d8
2 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/bash
set -e
set -e -x
env
if [ -f /var/lib/jenkins/pylint.django.rc ]; then if [ -f /var/lib/jenkins/pylint.django.rc ]; then
PYLINT_RC=/var/lib/jenkins/pylint.django.rc PYLINT_RC=/var/lib/jenkins/pylint.django.rc
elif [ -f pylint.django.rc ]; then elif [ -f pylint.django.rc ]; then

12
tox.ini
View File

@ -5,7 +5,7 @@
[tox] [tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic/ toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/authentic/
envlist = py27-coverage-{dj18,dj111}-authentic-{pg,sqlite}-{oldldap,},py27-coverage-{dj18,dj111}-rbac-{pg,sqlite} envlist = py27-coverage-{dj18,dj111}-authentic-{pg,sqlite}-{oldldap,},py27-coverage-{dj18,dj111}-rbac-{pg,sqlite},pylint
[testenv] [testenv]
whitelist_externals = whitelist_externals =
@ -54,8 +54,6 @@ deps =
pytest<5 pytest<5
lxml lxml
cssselect cssselect
pylint<1.8
pylint-django<0.8.1
django-webtest<1.9.3 django-webtest<1.9.3
Markdown<3 Markdown<3
WebTest WebTest
@ -69,6 +67,14 @@ commands =
./getlasso.sh ./getlasso.sh
rbac,authentic: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {env:JUNIT:} {posargs:{env:TESTS} --random-group} rbac,authentic: py.test {env:FAST:} {env:REUSEDB:} {env:COVERAGE:} {env:JUNIT:} {posargs:{env:TESTS} --random-group}
[testenv:pylint]
basepython = python2.7
deps =
pylint<1.8
pylint-django<0.8.1
commands =
/bin/bash -c "./pylint.sh src/*/"
[pytest] [pytest]
filterwarnings = filterwarnings =
ignore:on_delete.* ignore:on_delete.*