NFVBENCH-107 NFVbench 2.0 ValueError at end of fixed rate run
[nfvbench.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = py27,pep8,lint,docs,docs-linkcheck
4 skipsdist = True
5
6 [testenv]
7 usedevelop = True
8 install_command = pip install -U {opts} {packages}
9 setenv =
10    VIRTUAL_ENV={envdir}
11 deps = -r{toxinidir}/requirements.txt
12        -r{toxinidir}/test-requirements.txt
13 commands = py.test -q --basetemp={envtmpdir} {posargs}
14
15 [testenv:pep8]
16 commands = flake8 {toxinidir}
17
18 [testenv:lint]
19 commands = pylint --rcfile pylint.rc nfvbench test
20
21 [testenv:venv]
22 commands = {posargs}
23
24 [testenv:cover]
25 commands = python setup.py testr --coverage --testr-args='{posargs}'
26
27 [flake8]
28 # H803 skipped on purpose per list discussion.
29 # E123, E125 skipped as they are invalid PEP-8.
30 max-line-length = 100
31 show-source = True
32 #E302: expected 2 blank linee
33 #E303: too many blank lines (2)
34 #H233: Python 3.x incompatible use of print operator
35 #H236: Python 3.x incompatible __metaclass__, use six.add_metaclass()
36 #H302: import only modules.
37 #H404: multi line docstring should start without a leading new line
38 #H405: multi line docstring summary not separated with an empty line
39 #H904: Wrap long lines in parentheses instead of a backslash
40 ignore = E123,E125,H803,E302,E303,H104,H233,H236,H302,H404,H405,H904,D102,D100,D107
41 builtins = _
42 exclude=venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,dib-venv
43
44 [testenv:docs]
45 deps = -rdocs/requirements.txt
46 commands =
47     sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
48     echo "Generated docs available in {toxinidir}/docs/_build/html"
49 whitelist_externals = echo
50
51 [testenv:docs-linkcheck]
52 deps = -rdocs/requirements.txt
53 commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck