From aeb983a3f174728600d2f4d20b4255a210c1c5aa Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Mon, 25 Mar 2024 16:30:13 +0100 Subject: [PATCH] Add mypy environment to tox configuration --- tox.ini | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d1761475..87ae3fd6 100644 --- a/tox.ini +++ b/tox.ini @@ -8,11 +8,12 @@ envlist = py{310,311,312}-dj{main} flake8 isort + mypy [gh-actions] python = 3.7: py37 - 3.8: py38, flake8, isort + 3.8: py38, flake8, isort, mypy 3.9: py39 3.10: py310 3.11: py311 @@ -63,3 +64,13 @@ deps = isort commands = isort model_utils tests setup.py --check-only --diff skip_install = True + +[testenv:mypy] +basepython = python3.8 +deps = + time-machine==2.8.2 + -r requirements-mypy.txt +set_env = + SQLITE=1 +commands = + mypy model_utils tests