2017-02-06 15:04:04 +02:00

40 lines
980 B
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py27,pep8,pylint
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U --force-reinstall {opts} {packages}
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands = flake8 hnv_client {posargs}
deps = flake8
[testenv:pylint]
commands = pylint hnv_client --rcfile={toxinidir}/.pylintrc {posargs}
deps = pylint
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[nosetests]
verbosity = 1
detailed-errors = 1
[flake8]
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
ignore = E125,E251,H405
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools