From a1f4a13f103e378699cf3fbcbcb52a6b626b084f Mon Sep 17 00:00:00 2001 From: mattsb42-aws Date: Fri, 27 Apr 2018 20:40:20 -0700 Subject: [PATCH] fix mypy to max of 0.560 pending https://github.com/python/mypy/issues/4563 --- tox.ini | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tox.ini b/tox.ini index 2ea787d0..369c4136 100644 --- a/tox.ini +++ b/tox.ini @@ -63,31 +63,33 @@ commands = t.close()" coverage report -m -[testenv:mypy-py3] +[testenv:mypy-common] basepython = python3 deps = coverage - mypy + mypy<=0.560 mypy_extensions typing>=3.6.2 + +[testenv:mypy-py3] +basepython = {[testenv:mypy-common]basepython} +deps = {[testenv:mypy-common]deps} commands = python -m mypy \ --linecoverage-report build \ - src/dynamodb_encryption_sdk/ + src/dynamodb_encryption_sdk/ \ + {posargs} {[testenv:mypy-coverage]commands} [testenv:mypy-py2] -basepython = python3 -deps = - coverage - mypy - mypy_extensions - typing>=3.6.2 +basepython = {[testenv:mypy-common]basepython} +deps = {[testenv:mypy-common]deps} commands = python -m mypy \ --py2 \ --linecoverage-report build \ - src/dynamodb_encryption_sdk/ + src/dynamodb_encryption_sdk/ \ + {posargs} {[testenv:mypy-coverage]commands} # Linters