Skip to content

Commit

Permalink
Add mypy environment to tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne committed Mar 25, 2024
1 parent f0091b1 commit dc81772
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -63,3 +64,12 @@ deps = isort
commands =
isort model_utils tests setup.py --check-only --diff
skip_install = True

[testenv:mypy]
basepython = python3.8
deps =
-r requirements-mypy.txt
set_env =
SQLITE=1
commands =
mypy model_utils tests

0 comments on commit dc81772

Please sign in to comment.