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