mirror of
https://github.com/faucetsdn/ryu.git
synced 2025-08-06 22:57:17 +02:00
Enable bare minimum pytype + GHA (no ryu code changes). Exclusions/ignored errors can be incrementally removed, to manage diff size and risk.
This commit is contained in:
parent
f24e2b9bf1
commit
8b41507c2c
11
setup.cfg
11
setup.cfg
@ -55,3 +55,14 @@ setup-hooks =
|
|||||||
console_scripts =
|
console_scripts =
|
||||||
ryu-manager = ryu.cmd.manager:main
|
ryu-manager = ryu.cmd.manager:main
|
||||||
ryu = ryu.cmd.ryu_base:main
|
ryu = ryu.cmd.ryu_base:main
|
||||||
|
|
||||||
|
[pytype]
|
||||||
|
inputs =
|
||||||
|
ryu/controller/
|
||||||
|
disable =
|
||||||
|
attribute-error
|
||||||
|
import-error
|
||||||
|
key-error
|
||||||
|
module-attr
|
||||||
|
keep-going =
|
||||||
|
1
|
||||||
|
@ -4,4 +4,5 @@ mock
|
|||||||
nose
|
nose
|
||||||
pycodestyle
|
pycodestyle
|
||||||
pylint
|
pylint
|
||||||
|
pytype
|
||||||
formencode
|
formencode
|
||||||
|
12
tox.ini
12
tox.ini
@ -1,10 +1,10 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py35,py36,py37,py38,py39,pypy,pycodestyle,autopep8
|
envlist = py35,py36,py37,py38,py39,pypy,pycodestyle,autopep8,pytype
|
||||||
|
|
||||||
[gh-actions]
|
[gh-actions]
|
||||||
python =
|
python =
|
||||||
3.5: py35
|
3.5: py35
|
||||||
3.6: py36, pycodestyle, autopep8
|
3.6: py36, pycodestyle, autopep8, pytype
|
||||||
3.7: py37
|
3.7: py37
|
||||||
3.8: py38
|
3.8: py38
|
||||||
3.9: py39
|
3.9: py39
|
||||||
@ -53,6 +53,14 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
bash -c 'test -z "$(autopep8 --recursive --diff ryu/)"'
|
bash -c 'test -z "$(autopep8 --recursive --diff ryu/)"'
|
||||||
|
|
||||||
|
[testenv:pytype]
|
||||||
|
deps =
|
||||||
|
-U
|
||||||
|
--no-cache-dir
|
||||||
|
pytype
|
||||||
|
commands =
|
||||||
|
pytype --jobs 2
|
||||||
|
|
||||||
[pycodestyle]
|
[pycodestyle]
|
||||||
exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
|
exclude = pbr-*,.venv,.tox,.git,doc,dist,tools,vcsversion.py,.pyc,ryu/contrib
|
||||||
# W503: line break before binary operator
|
# W503: line break before binary operator
|
||||||
|
Loading…
Reference in New Issue
Block a user