summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJon Parise <jon@pinterest.com>2022-02-20 11:54:47 -0800
committerGitHub <noreply@github.com>2022-02-20 11:54:47 -0800
commita2be8250c68b22315e278686b9e57c2dcbee3b62 (patch)
tree34d63048a1c57eaf50c5bf88edfe0d13cfb469c0 /tox.ini
parent900fc18db76a4e20c77f748bcffff2055231a3b5 (diff)
downloadpymemcache-a2be8250c68b22315e278686b9e57c2dcbee3b62.tar.gz
Initial support for mypy-based type checking (#373)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 7 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 388c35a..dc39912 100644
--- a/tox.ini
+++ b/tox.ini
@@ -7,6 +7,7 @@ envlist =
pypy3,
docs,
lint,
+ mypy,
venv,
skip_missing_interpreters = true
@@ -29,6 +30,12 @@ commands =
flake8
black --check .
+[testenv:mypy]
+description = type check source code
+deps = -r{toxinidir}/mypy-requirements.txt
+commands =
+ python -m mypy -p pymemcache
+
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = -r{toxinidir}/docs-requirements.txt