Skip to content

Commit 94998f9

Browse files
authoredMay 1, 2018
Merge pull request #39 from mattsb42-aws/mypy-version-fix
fix mypy to max of 0.560 pending python/mypy#4563
2 parents 3503b17 + a1f4a13 commit 94998f9

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed
 

‎tox.ini

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,31 +70,33 @@ commands =
7070
t.close()"
7171
coverage report -m
7272

73-
[testenv:mypy-py3]
73+
[testenv:mypy-common]
7474
basepython = python3
7575
deps =
7676
coverage
77-
mypy
77+
mypy<=0.560
7878
mypy_extensions
7979
typing>=3.6.2
80+
81+
[testenv:mypy-py3]
82+
basepython = {[testenv:mypy-common]basepython}
83+
deps = {[testenv:mypy-common]deps}
8084
commands =
8185
python -m mypy \
8286
--linecoverage-report build \
83-
src/dynamodb_encryption_sdk/
87+
src/dynamodb_encryption_sdk/ \
88+
{posargs}
8489
{[testenv:mypy-coverage]commands}
8590

8691
[testenv:mypy-py2]
87-
basepython = python3
88-
deps =
89-
coverage
90-
mypy
91-
mypy_extensions
92-
typing>=3.6.2
92+
basepython = {[testenv:mypy-common]basepython}
93+
deps = {[testenv:mypy-common]deps}
9394
commands =
9495
python -m mypy \
9596
--py2 \
9697
--linecoverage-report build \
97-
src/dynamodb_encryption_sdk/
98+
src/dynamodb_encryption_sdk/ \
99+
{posargs}
98100
{[testenv:mypy-coverage]commands}
99101

100102
# Linters

0 commit comments

Comments
 (0)
Please sign in to comment.