Add pylint-based lintstack test to tox environment

lintstack is a pylint-based static analysis tool to find bugs
in Python code.

To run the test via tox: $ tox -e pylint
To run the test directly: $ tools/lintstack.sh

Change-Id: If155f47ed84eb820ac505ee741bdd18edd41b1eb
This commit is contained in:
Yun Mao
2013-05-09 21:31:23 -04:00
parent 116493092c
commit d75fafa88f
4 changed files with 266 additions and 0 deletions

View File

@@ -35,3 +35,9 @@ setenv = NOSE_WITH_COVERAGE=1
[testenv:pyflakes]
deps = pyflakes
commands = python tools/flakes.py cinder
[testenv:pylint]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
pylint==0.26.0
commands = bash tools/lintstack.sh