craton/tox.ini

48 lines
900 B
INI

[tox]
minversion = 2.0
envlist = py35,pep8
skipsdist = True
[testenv]
basepython = python3.5
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
whitelist_externals = find
[testenv:py35]
commands =
{[testenv]commands}
nosetests -v --where={toxinidir}/craton/tests/unit
[testenv:functional]
commands =
{[testenv]commands}
nosetests -v []
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E402
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build