oslo.config/tox.ini
Zhongyue Luo 5439d6bf29 Adds pylint section in tox.ini in oslo.config to check for unused imports
Fixes bug #1157597

Change-Id: I58057cdde6064dacf6689560ec6439fd6dc7cf4f
2013-03-22 15:38:02 +08:00

28 lines
632 B
INI

[tox]
envlist = py26,py27,pep8,pylint
[testenv]
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = nosetests --with-doctest --exclude-dir=tests/testmods {posargs}
[testenv:pep8]
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
[testenv:venv]
commands = {posargs}
[testenv:pyflakes]
deps = pyflakes
commands = pyflakes oslo setup.py