Skip to content

Commit

Permalink
tox: introduce a mypy environment
Browse files Browse the repository at this point in the history
Provides support to run the Mypy static type checker through tox.

Not in a passing state at this time, so the environment will not be
enabled by default just yet.

Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Feb 27, 2024
1 parent 01b91a5 commit 76ea6e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements_types.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
types-docutils
types-requests
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ commands =
sphinxcontrib \
tests

[testenv:mypy]
deps =
{[testenv]deps}
-r{toxinidir}/requirements_types.txt
mypy
commands =
mypy \
--explicit-package-bases \
sphinxcontrib

[testenv:{,py38-,py39-,py310-,py311-,py312-}sandbox]
deps =
-r{toxinidir}/sandbox/requirements.txt
Expand Down

0 comments on commit 76ea6e2

Please sign in to comment.