summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini14
1 files changed, 13 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 2e3d0df..7ab790d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@
[tox]
envlist =
- flake8, py35, py36, py37, py38, py39
+ flake8, mypy, py36, py37, py38, py39
# Other valid evironments are:
# docs
# release
@@ -52,6 +52,18 @@ commands =
twine check dist/*
skip_install = true
+# Type checking
+[testenv:mypy]
+deps =
+ mypy
+ hypothesis
+ pytest
+ pytest-mock
+ fastnumbers
+commands =
+ mypy --strict natsort tests
+skip_install = true
+
# Build documentation.
# sphinx and sphinx_rtd_theme not in docs/requirements.txt because they
# will already be installed on readthedocs.