2 envlist = py27,py34,py35,py36,py37,pypy,pycodestyle,autopep8
7 -r{toxinidir}/tools/pip-requires
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.
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}'
21 python ryu/tests/integrated/run_test.py
26 {[testenv:scenario]commands}
31 {[testenv:scenario]commands}
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
51 bash -c 'test -z "$(autopep8 --recursive --diff ryu/)"'
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
66 exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
67 ignore = W503,E116,E402,E501,E722,E731,E741