summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJoshua Powers <josh.powers@canonical.com>2017-03-21 14:18:46 -0600
committerScott Moser <smoser@brickies.net>2017-03-24 15:11:53 -0400
commit35cf3415f9748c880db4d3c004f3410c3aa2cab2 (patch)
tree0f4985af251431543e4b10aef15cf443cdc5f38a /tox.ini
parent2e879da890a4287dd52eab17938d227da7af253a (diff)
downloadvyos-cloud-init-35cf3415f9748c880db4d3c004f3410c3aa2cab2.tar.gz
vyos-cloud-init-35cf3415f9748c880db4d3c004f3410c3aa2cab2.zip
test: add running of pylint
Now tox will run pylint. The .pylintrc file sets pylint to only produce errors, and will ignore certain classes that are known problematic (six).
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index f016f206..bf9046af 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27, py3, flake8, xenial
+envlist = py27, py3, flake8, xenial, pylint
recreate = True
[testenv]
@@ -17,6 +17,10 @@ commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/}
setenv =
LC_ALL = en_US.utf-8
+[testenv:pylint]
+deps = pylint==1.6.5
+commands = {envpython} -m pylint {posargs:cloudinit}
+
[testenv:py3]
basepython = python3
commands = {envpython} -m nose {posargs:--with-coverage \
@@ -88,6 +92,10 @@ deps = pycodestyle
commands = {envpython} -m pyflakes {posargs:cloudinit/ tests/ tools/}
deps = pyflakes
+[testenv:tip-pylint]
+commands = {envpython} -m pylint {posargs:cloudinit}
+deps = pylint
+
[testenv:citest]
basepython = python3
commands = {envpython} -m tests.cloud_tests {posargs}