Skip to content

Commit 400a98d

Browse files
author
Daniel Gallagher
committed
Add tox env for running mypy and add that to .travis.yml
1 parent c8fba61 commit 400a98d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ matrix:
1313
python: pypy-5.7.1
1414
- env: TOXENV=pre-commit
1515
python: 3.6
16+
- env: TOXENV=mypy
17+
python: 3.6
1618
install:
1719
- pip install coveralls tox
18-
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then pip install mypy; fi
1920
script: tox
2021
after_success: coveralls
2122
cache:

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = flake8,py27,py33,py34,py35,py36,pre-commit,pypy
2+
envlist = flake8,py27,py33,py34,py35,py36,pre-commit,pypy,mypy
33
skipsdist = true
44

55
[testenv]
@@ -18,6 +18,13 @@ setenv =
1818
commands =
1919
pre-commit {posargs:run --all-files}
2020

21+
[testenv:mypy]
22+
basepython=python3.6
23+
deps =
24+
mypy
25+
commands =
26+
mypy graphene
27+
2128
[testenv:flake8]
2229
deps = flake8
2330
commands =

0 commit comments

Comments
 (0)