summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSeth Morton <seth.m.morton@gmail.com>2021-10-24 09:49:39 -0700
committerSeth Morton <seth.m.morton@gmail.com>2021-10-24 09:49:39 -0700
commitcd0520fc8e462643f59ef0bee77b509021b3108e (patch)
tree3e0854d23300f17eb6925c487b3dc39c978c1b33 /tox.ini
parent43b70f4f35e5575662df75922bd316fa7957e289 (diff)
downloadnatsort-cd0520fc8e462643f59ef0bee77b509021b3108e.tar.gz
Add a mypy env to tox
This will enable typechecking during testing.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 9 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 2e3d0df..f89ee8f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@
[tox]
envlist =
- flake8, py35, py36, py37, py38, py39
+ flake8, mypy, py35, py36, py37, py38, py39
# Other valid evironments are:
# docs
# release
@@ -52,6 +52,14 @@ commands =
twine check dist/*
skip_install = true
+# Type checking
+[testenv:mypy]
+deps =
+ mypy
+commands =
+ mypy natsort
+skip_install = true
+
# Build documentation.
# sphinx and sphinx_rtd_theme not in docs/requirements.txt because they
# will already be installed on readthedocs.