deb-python-hplefthandclient/tox.ini

33 lines
761 B
INI

[tox]
minversion = 1.6
skipdist = True
envlist = py27,pep8,cover
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
nosetests --tc-file={toxinidir}/test/config.ini -v
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
nosetests --with-coverage --cover-package=hplefthandclient --cover-html --tc-file={toxinidir}/test/config.ini -v
[testenv:docs]
commands = sphinx-build -b html docs docs/html
[testenv:pep8]
commands =
flake8 {posargs} hplefthandclient test
[flake8]
show-source = True
ignore = E265,E402,E713
exclude = .venv,.git,.tox,dist,doc