diff options
author | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-03-21 16:35:26 +0800 |
---|---|---|
committer | Zhongyue Luo <zhongyue.nah@intel.com> | 2013-03-22 15:38:02 +0800 |
commit | 5439d6bf290ec43f2ecddb1696eaa1a4ba114e07 (patch) | |
tree | 6d12e9218b3980ad218f746028faf3c63d95836c /tox.ini | |
parent | dadd3ea62392e2cf4bb8a65c5464ea5e7e0271b2 (diff) | |
download | oslo-config-5439d6bf290ec43f2ecddb1696eaa1a4ba114e07.tar.gz |
Adds pylint section in tox.ini in oslo.config to check for unused imports
Fixes bug #1157597
Change-Id: I58057cdde6064dacf6689560ec6439fd6dc7cf4f
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = py26,py27,pep8 +envlist = py26,py27,pep8,pylint [testenv] setenv = VIRTUAL_ENV={envdir} @@ -11,6 +11,11 @@ commands = nosetests --with-doctest --exclude-dir=tests/testmods {posargs} deps = pep8==1.3.3 commands = pep8 --repeat --show-source --exclude=.tox,dist,doc,*.egg --ignore=E125 . +[testenv:pylint] +deps = pylint>=0.26.0 +commands = python ./tools/lint.py ./oslo + python ./tools/lint.py ./tests + [testenv:cover] setenv = NOSE_WITH_COVERAGE=1 |