4a4e74e8fd
pip-requirements and test-recurements were moved to root directory and renamed All extra files were excluded Add python-murano-client to muranodashboard requirements Change-Id: Ia479e8a8ca5798dcf4c8e2ad88776d32259db375
39 lines
927 B
INI
39 lines
927 B
INI
[tox]
|
|
envlist = py26,py27,pep8,pyflakes
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
NOSE_WITH_OPENSTACK=1
|
|
NOSE_OPENSTACK_COLOR=1
|
|
NOSE_OPENSTACK_RED=0.05
|
|
NOSE_OPENSTACK_YELLOW=0.025
|
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:pep8]
|
|
deps = pep8==1.3.3
|
|
commands = pep8 --repeat --show-source muranodashboard setup.py
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
commands = nosetests --cover-erase --cover-package=muranodashboard --with-xcoverage
|
|
|
|
[testenv:pyflakes]
|
|
deps = flake8
|
|
commands = flake8
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
# H301 one import per line
|
|
# H302 import only modules
|
|
# H201 no 'except:' at least use 'except Exception:'
|
|
ignore = H301,H302,F403,H201
|
|
show-source = true
|
|
builtins = _
|
|
exclude=.build,.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,tools
|