NFVBENCH-15 REST server stays busy after invalid run request without body
[nfvbench.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = py27,pep8
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 changedir=test
14 commands = py.test -q -s --basetemp={envtmpdir} {posargs}
15
16 [testenv:pep8]
17 commands = flake8 {toxinidir}
18
19 [testenv:venv]
20 commands = {posargs}
21
22 [testenv:cover]
23 commands = python setup.py testr --coverage --testr-args='{posargs}'
24
25 [testenv:docs]
26 commands = python setup.py build_sphinx
27
28 [flake8]
29 # H803 skipped on purpose per list discussion.
30 # E123, E125 skipped as they are invalid PEP-8.
31 max-line-length = 100
32 show-source = True
33 #E302: expected 2 blank linee
34 #E303: too many blank lines (2)
35 #H233: Python 3.x incompatible use of print operator
36 #H236: Python 3.x incompatible __metaclass__, use six.add_metaclass()
37 #H302: import only modules.
38 #H404: multi line docstring should start without a leading new line
39 #H405: multi line docstring summary not separated with an empty line
40 #H904: Wrap long lines in parentheses instead of a backslash
41 ignore = E123,E125,H803,E302,E303,H233,H236,H302,H404,H405,H904
42 builtins = _
43 exclude=venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build