Skip to content

Commit

Permalink
add mypy tox environment
Browse files Browse the repository at this point in the history
  • Loading branch information
fohrloop committed Apr 21, 2024
1 parent 09057d4 commit 5adf76d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ commands =
python -m ruff check --no-fix .
python -m mypy .

[testenv:mypy]
; This is a separate tox environment from the 'check' as this one
; is means to be ran solely in the CI pipelines and used to check the
; code with mypy using the oldest supported python version.
description = Run mypy for /src
deps = -r{toxinidir}/requirements/requirements-mypy.txt
commands =
python -m mypy src

[testenv:builddocs]
description = Build documentation
deps = -r{toxinidir}/requirements/requirements-docs.txt
Expand Down

0 comments on commit 5adf76d

Please sign in to comment.