Skip to content

Commit

Permalink
Merge pull request #142 from anarkiwi/pytype2
Browse files Browse the repository at this point in the history
Enable bare minimum pytype + GHA (no ryu code changes).
  • Loading branch information
anarkiwi committed Jun 3, 2021
2 parents f24e2b9 + 8b41507 commit 34f3349
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,14 @@ setup-hooks =
console_scripts =
ryu-manager = ryu.cmd.manager:main
ryu = ryu.cmd.ryu_base:main

[pytype]
inputs =
ryu/controller/
disable =
attribute-error
import-error
key-error
module-attr
keep-going =
1
1 change: 1 addition & 0 deletions tools/test-requires
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ mock
nose
pycodestyle
pylint
pytype
formencode
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[tox]
envlist = py35,py36,py37,py38,py39,pypy,pycodestyle,autopep8
envlist = py35,py36,py37,py38,py39,pypy,pycodestyle,autopep8,pytype

[gh-actions]
python =
3.5: py35
3.6: py36, pycodestyle, autopep8
3.6: py36, pycodestyle, autopep8, pytype
3.7: py37
3.8: py38
3.9: py39
Expand Down Expand Up @@ -53,6 +53,14 @@ deps =
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
Expand Down

0 comments on commit 34f3349

Please sign in to comment.