-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
tox.ini
78 lines (69 loc) · 1.91 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
68
69
70
71
72
73
74
75
76
77
78
[tox]
envlist = py35,py36,py37,py38,py39,pypy,pycodestyle,autopep8,pytype
[gh-actions]
python =
3.5: py35
3.6: py36, pycodestyle, autopep8, pytype
3.7: py37
3.8: py38
3.9: py39
[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: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/)"'
[testenv:pytype]
deps =
-U
--no-cache-dir
pytype
commands =
pytype --jobs 2
[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