summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan de Jong <jonathan@automatia.nl>2020-10-20 13:55:21 +0200
committerGitHub <noreply@github.com>2020-10-20 07:55:21 -0400
commit84c0e46cced7b1fe0e3fd27eed5111884959cb36 (patch)
tree4735e439a6bd99656b3eb0f732a39baaca539f06
parentRemove some extraneous @unittest.INFOs on unit tests (#8592) (diff)
downloadsynapse-84c0e46cced7b1fe0e3fd27eed5111884959cb36.tar.xz
Update mypy to 0.790, and move dependencies to extras (#8583)
-rw-r--r--changelog.d/8583.misc1
-rwxr-xr-xsetup.py2
-rw-r--r--tox.ini4
3 files changed, 4 insertions, 3 deletions
diff --git a/changelog.d/8583.misc b/changelog.d/8583.misc
new file mode 100644
index 0000000000..d24973f09a
--- /dev/null
+++ b/changelog.d/8583.misc
@@ -0,0 +1 @@
+Update `mypy` static type checker to 0.790.
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 08843fe2a3..494f50239f 100755
--- a/setup.py
+++ b/setup.py
@@ -102,6 +102,8 @@ CONDITIONAL_REQUIREMENTS["lint"] = [
     "flake8",
 ]
 
+CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.790", "mypy-zope"]
+
 # Dependencies which are exclusively required by unit test code. This is
 # NOT a list of all modules that are necessary to run the unit tests.
 # Tests assume that all optional dependencies are installed.
diff --git a/tox.ini b/tox.ini
index 6d08153782..6dcc439a40 100644
--- a/tox.ini
+++ b/tox.ini
@@ -160,9 +160,7 @@ commands=
 [testenv:mypy]
 deps =
     {[base]deps}
-    mypy==0.782
-    mypy-zope
-extras = all
+extras = all,mypy
 commands = mypy
 
 # To find all folders that pass mypy you run: