Update and rename MantenerFIFO to MantenerFIFO.md
[vsorcdistro/.git] / ryu / tox.ini
1 [tox]
2 envlist = py27,py34,py35,py36,py37,pypy,pycodestyle,autopep8
3
4 [testenv]
5 deps =
6   -U
7   -r{toxinidir}/tools/pip-requires
8   --no-cache-dir
9 usedevelop = True
10 passenv= NOSE_VERBOSE
11 # Note: To check whether tools/pip-requires satisfies the requirements
12 # for running Ryu, the following runs ryu-manager berfore installing
13 # the addtional requirements.
14 commands =
15   ryu-manager ryu/tests/unit/cmd/dummy_openflow_app.py
16   pip install -r{toxinidir}/tools/optional-requires -r{toxinidir}/tools/test-requires
17   coverage run --source=ryu ryu/tests/run_tests.py '{posargs}'
18
19 [testenv:scenario]
20 commands =
21   python ryu/tests/integrated/run_test.py
22
23 [testenv:py27]
24 commands =
25   {[testenv]commands}
26   {[testenv:scenario]commands}
27
28 [testenv:py36]
29 commands =
30   {[testenv]commands}
31   {[testenv:scenario]commands}
32
33 [testenv:pycodestyle]
34 deps =
35   -U
36   --no-cache-dir
37   pycodestyle
38 commands =
39   pycodestyle
40
41 [testenv:autopep8]
42 # If some errors displayed with this test, please reformat codes with the
43 # following command first.
44 # $ autopep8 --recursive --in-place ryu/
45 whitelist_externals=bash
46 deps =
47   -U
48   --no-cache-dir
49   autopep8
50 commands =
51   bash -c 'test -z "$(autopep8 --recursive --diff ryu/)"'
52
53 [pycodestyle]
54 exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
55 # W503: line break before binary operator
56 # W504: line break after binary operator
57 # E116: unexpected indentation (comment)
58 # E402: module level import not at top of file
59 # E501: line too long (>79 characters)
60 # E722: do not use bare except, specify exception instead
61 # E731: do not assign a lambda expression, use a def
62 # E741: do not use variables named 'l', 'O', or 'I'
63 ignore = W503,W504,E116,E402,E501,E722,E731,E741
64
65 [pep8]
66 exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
67 ignore = W503,E116,E402,E501,E722,E731,E741