summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-10 10:42:29 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-05-10 15:50:53 (GMT)
commit7a0d5719d8568a3dbba1ff23c9185891d7eeda57 (patch)
tree262066a6f6c170bbe6c52d8afc491c62f57589c2
parent9c3951ceeb935d85c0ddea1d41c4a52d7e4acad2 (diff)
downloadauthentic-7a0d5719d8568a3dbba1ff23c9185891d7eeda57.zip
authentic-7a0d5719d8568a3dbba1ff23c9185891d7eeda57.tar.gz
authentic-7a0d5719d8568a3dbba1ff23c9185891d7eeda57.tar.bz2
tox.ini: run pylint (#32961)
-rwxr-xr-xpylint.sh6
-rw-r--r--tox.ini12
2 files changed, 12 insertions, 6 deletions
diff --git a/pylint.sh b/pylint.sh
index d7295cc..ec53034 100755
--- a/pylint.sh
+++ b/pylint.sh
@@ -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
diff --git a/tox.ini b/tox.ini
index f42261d..fe8a715 100644
--- a/tox.ini
+++ b/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.*