Skip to content

Commit c75e54a

Browse files
committed
Add mypy environment to tox configuration
1 parent 2f58a11 commit c75e54a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

tox.ini

+12-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ envlist =
88
py{310,311,312}-dj{main}
99
flake8
1010
isort
11+
mypy
1112

1213
[gh-actions]
1314
python =
1415
3.7: py37
15-
3.8: py38, flake8, isort
16+
3.8: py38, flake8, isort, mypy
1617
3.9: py39
1718
3.10: py310
1819
3.11: py311
@@ -63,3 +64,13 @@ deps = isort
6364
commands =
6465
isort model_utils tests setup.py --check-only --diff
6566
skip_install = True
67+
68+
[testenv:mypy]
69+
basepython = python3.8
70+
deps =
71+
time-machine==2.8.2
72+
-r requirements-mypy.txt
73+
set_env =
74+
SQLITE=1
75+
commands =
76+
mypy model_utils tests

0 commit comments

Comments
 (0)