summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2020-05-03 15:31:25 -0400
committerJason R. Coombs <jaraco@jaraco.com>2020-05-03 15:31:25 -0400
commit7455f2f25310b2d778a648e45d32033ccc790946 (patch)
tree907dc560b0163b1fd7199871ef12e63bdbac6c25
parent649bc7934a13b78eb1283cad9919b9f26c5426e9 (diff)
downloadpytest-runner-7455f2f25310b2d778a648e45d32033ccc790946.tar.gz
Include mypy for type checking during tests.
-rw-r--r--mypy.ini2
-rw-r--r--pytest.ini2
-rw-r--r--setup.cfg1
3 files changed, 4 insertions, 1 deletions
diff --git a/mypy.ini b/mypy.ini
new file mode 100644
index 0000000..976ba02
--- /dev/null
+++ b/mypy.ini
@@ -0,0 +1,2 @@
+[mypy]
+ignore_missing_imports = True
diff --git a/pytest.ini b/pytest.ini
index 62c0f36..381b327 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -1,6 +1,6 @@
[pytest]
norecursedirs=dist build .tox .eggs
-addopts=--doctest-modules --flake8 --black --cov
+addopts=--doctest-modules --flake8 --black --cov --mypy
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
# workaround for warning pytest-dev/pytest#6178
junit_family=xunit2
diff --git a/setup.cfg b/setup.cfg
index 3f887a6..e2dcebb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -28,6 +28,7 @@ testing =
pytest-flake8
pytest-black >= 0.3.7
pytest-cov
+ pytest-mypy
# local