tox.ini: run pylint (#32961)
This commit is contained in:
parent
9c3951ceeb
commit
7a0d5719d8
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
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
|
||||
|
|
12
tox.ini
12
tox.ini
|
@ -5,7 +5,7 @@
|
|||
|
||||
[tox]
|
||||
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]
|
||||
whitelist_externals =
|
||||
|
@ -54,8 +54,6 @@ deps =
|
|||
pytest<5
|
||||
lxml
|
||||
cssselect
|
||||
pylint<1.8
|
||||
pylint-django<0.8.1
|
||||
django-webtest<1.9.3
|
||||
Markdown<3
|
||||
WebTest
|
||||
|
@ -69,6 +67,14 @@ commands =
|
|||
./getlasso.sh
|
||||
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]
|
||||
filterwarnings =
|
||||
ignore:on_delete.*
|
||||
|
|
Loading…
Reference in New Issue