summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Padilla <jpadilla@webapplicate.com>2019-05-04 19:55:30 -0400
committerJosé Padilla <jpadilla@webapplicate.com>2019-05-04 21:28:19 -0400
commitded1d9a9d88d1d5b5ea6860d6a7c11eed76894fc (patch)
treec9cd96c2ded69f754592ebc096c68ed2a0c96a7f
parent5a9c34f2ebd55fce52a19e57974df86ac5a5f8c2 (diff)
downloadpyjwt-fix-mypy.tar.gz
Run mypy with toxfix-mypy
-rw-r--r--.travis.yml10
-rw-r--r--tox.ini8
2 files changed, 10 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 4d60887..3edf125 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,20 +6,16 @@ matrix:
- python: 3.4
env: TOXENV=flake8,py34-crypto,py34-nocrypto
- python: 3.5
- env: TOXENV=flake8,py35-crypto,py35-nocrypto,py35-contrib_crypto
+ env: TOXENV=flake8,mypy,py35-crypto,py35-nocrypto,py35-contrib_crypto
- python: 3.6
- env: TOXENV=flake8,py36-crypto,py36-nocrypto,py36-contrib_crypto
+ env: TOXENV=flake8,mypy,py36-crypto,py36-nocrypto,py36-contrib_crypto
- python: 3.7
- env: TOXENV=flake8,py37-crypto,py37-nocrypto,py37-contrib_crypto
+ env: TOXENV=flake8,mypy,py37-crypto,py37-nocrypto,py37-contrib_crypto
dist: xenial
-before_install:
- - sudo apt-get install python3-pip # required to install mypy
install:
- pip install -U pip
- pip install -U tox coveralls
- - sudo python3 -m pip install -U mypy # python3.4+ required to run mypy
script:
- tox
- - mypy --ignore-missing-imports jwt
after_success:
- coveralls
diff --git a/tox.ini b/tox.ini
index 3c93faa..047a860 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py{27,34,35,36,37}-crypto, py{27,35,36,37}-contrib_crypto, py{27,35,36,37}-nocrypto, flake8
+envlist = py{27,34,35,36,37}-crypto, py{27,35,36,37}-contrib_crypto, py{27,35,36,37}-nocrypto, flake8, mypy
[testenv]
commands =
@@ -16,3 +16,9 @@ deps =
flake8
flake8-import-order
pep8-naming
+
+[testenv:mypy]
+commands =
+ mypy --ignore-missing-imports jwt
+deps =
+ mypy