Skip to content

Commit a1f4a13

Browse files
committed
fix mypy to max of 0.560 pending python/mypy#4563
1 parent fe58bdb commit a1f4a13

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
@@ -63,31 +63,33 @@ commands =
6363
t.close()"
6464
coverage report -m
6565

66-
[testenv:mypy-py3]
66+
[testenv:mypy-common]
6767
basepython = python3
6868
deps =
6969
coverage
70-
mypy
70+
mypy<=0.560
7171
mypy_extensions
7272
typing>=3.6.2
73+
74+
[testenv:mypy-py3]
75+
basepython = {[testenv:mypy-common]basepython}
76+
deps = {[testenv:mypy-common]deps}
7377
commands =
7478
python -m mypy \
7579
--linecoverage-report build \
76-
src/dynamodb_encryption_sdk/
80+
src/dynamodb_encryption_sdk/ \
81+
{posargs}
7782
{[testenv:mypy-coverage]commands}
7883

7984
[testenv:mypy-py2]
80-
basepython = python3
81-
deps =
82-
coverage
83-
mypy
84-
mypy_extensions
85-
typing>=3.6.2
85+
basepython = {[testenv:mypy-common]basepython}
86+
deps = {[testenv:mypy-common]deps}
8687
commands =
8788
python -m mypy \
8889
--py2 \
8990
--linecoverage-report build \
90-
src/dynamodb_encryption_sdk/
91+
src/dynamodb_encryption_sdk/ \
92+
{posargs}
9193
{[testenv:mypy-coverage]commands}
9294

9395
# Linters

0 commit comments

Comments
 (0)