diff options
author | José Padilla <jpadilla@webapplicate.com> | 2019-05-04 21:58:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-04 21:58:44 -0400 |
commit | 2c8bfe502a5fc3803e6334c4914016bfa805f181 (patch) | |
tree | 465a21af5ef3fd1da22ed87cd58b316d25d39da7 | |
parent | 2f31a58405130bb897225ddbb17f64087fb81e70 (diff) | |
download | pyjwt-2c8bfe502a5fc3803e6334c4914016bfa805f181.tar.gz |
Run mypy with tox (#421)
-rw-r--r-- | .travis.yml | 10 | ||||
-rwxr-xr-x | setup.py | 3 | ||||
-rw-r--r-- | tox.ini | 7 |
3 files changed, 12 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 @@ -77,6 +77,9 @@ setup( 'flake8', 'flake8-import-order', 'pep8-naming' + ], + mypy=[ + 'mypy' ] ), entry_points={ @@ -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 = @@ -14,3 +14,8 @@ extras = test commands = flake8 extras = flake8 + +[testenv:mypy] +commands = + mypy --ignore-missing-imports jwt +extras = mypy |