mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 11:33:55 +03:00
Add tox env for running mypy and add that to .travis.yml
This commit is contained in:
parent
c8fba61a05
commit
400a98de92
|
@ -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:
|
||||||
|
|
9
tox.ini
9
tox.ini
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user