Add tox env for running mypy and add that to .travis.yml

This commit is contained in:
Daniel Gallagher 2018-06-11 09:12:27 -07:00
parent c8fba61a05
commit 400a98de92
2 changed files with 10 additions and 2 deletions

View File

@ -13,9 +13,10 @@ matrix:
python: pypy-5.7.1 python: pypy-5.7.1
- env: TOXENV=pre-commit - env: TOXENV=pre-commit
python: 3.6 python: 3.6
- env: TOXENV=mypy
python: 3.6
install: install:
- pip install coveralls tox - pip install coveralls tox
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install mypy; fi
script: tox script: tox
after_success: coveralls after_success: coveralls
cache: cache:

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = flake8,py27,py33,py34,py35,py36,pre-commit,pypy envlist = flake8,py27,py33,py34,py35,py36,pre-commit,pypy,mypy
skipsdist = true skipsdist = true
[testenv] [testenv]
@ -18,6 +18,13 @@ setenv =
commands = commands =
pre-commit {posargs:run --all-files} pre-commit {posargs:run --all-files}
[testenv:mypy]
basepython=python3.6
deps =
mypy
commands =
mypy graphene
[testenv:flake8] [testenv:flake8]
deps = flake8 deps = flake8
commands = commands =