Skip to content

Commit 4865e76

Browse files
committed
Add mypy to tox env
1 parent a947379 commit 4865e76

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,linting}
3+
py{37,38,39,linting},mypy
44

55
[pytest]
66
norecursedirs = .git .tox env coverage docs
@@ -16,6 +16,7 @@ deps=
1616
-rrequirements/test.txt
1717
-rrequirements/docs.txt
1818
pre-commit>=1.11.0
19+
mypy>=1.6.1
1920
tox
2021
basepython = python3.8
2122
usedevelop = True
@@ -56,6 +57,11 @@ basepython = python3.8
5657
deps = pre-commit>=1.11.0
5758
commands = pre-commit run --all-files --show-diff-on-failure {posargs:}
5859

60+
[testenv:mypy]
61+
basepython = python3.8
62+
deps = mypy>=1.6.1
63+
commands = mypy src
64+
5965
[testenv:docs]
6066
changedir = docs
6167
skipsdist = True

0 commit comments

Comments
 (0)