diff --git a/tox.ini b/tox.ini index cb4b11c..88bbfee 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {py27,py33,py34,pypy,pypy3}-django18, {py27,py34,py35,pypy}-django{19,110}, coverage, docs, flake8 +envlist = {py27,py33,py34,pypy,pypy3}-django18, {py27,py34,py35,pypy}-django{19,110}, coverage, docs, flake8, mypy-py{2,3} ; https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django [testenv] @@ -35,3 +35,13 @@ commands = basepython = python2.7 deps = flake8 commands = flake8 channels/ + +[testenv:mypy-py2] +basepython = python2.7 +deps = mypy-lang +commands = mypy --py2 --silent-imports -m channels + +[testenv:mypy-py3] +basepython = python3.5 +deps = mypy-lang +commands = mypy --silent-imports -m channels