valet/tox.ini
Tanvir Talukder ad2b7fab31 Fix pep8 and docstring violations
Fix issues in py files in the directories
valet/valet/api/common
valet/api
valet/cli
valet/engine/optimizer/
valet/tests/
valet/tests/tempest
valet_plugins
2017-05-01 19:24:57 -05:00

66 lines
1.4 KiB
INI

[tox]
#minversion = 2.0
envlist = py27
#py27-constraints, pep8-constraints
#py34-constraints,py27-constraints,pypy-constraints,pep8-constraints
#skipsdist = True
[testenv]
usedevelop = True
install_command =
pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=valet/tests/unit
#commands = python setup.py testr --slowest --testr-args='{posargs}'
commands =
find . -type f -name "*.pyc" -delete
ostestr --slowest '{posargs}'
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals =
bash
find
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:tempest]
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=valet/tests/tempest
commands = python setup.py testr --slowest --testr-args='{posargs}'
# python setup.py testr --testr-args='{posargs}' | subunit-trace --no-failure-debug -f
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=valet/tests/unit/
commands =
coverage erase
python setup.py test --slowest --coverage --coverage-package-name 'valet' --testr-args='{posargs}'
coverage html
coverage report
[testenv:docs]
commands = python setup.py build_sphinx
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E501,H401,H105,H301
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build