summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-19 17:59:57 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-19 17:59:57 +0000
commite5592ca2c1a2148ae47b4d25fe06d99f14716f45 (patch)
tree6ab48615dc368acd57b89adc698df6587a449454
parentlook up cross-signing keys from the DB in bulk (#6486) (diff)
parentMerge pull request #6534 from matrix-org/erikj/extend_mypy (diff)
downloadsynapse-e5592ca2c1a2148ae47b4d25fe06d99f14716f45.tar.xz
Merge pull request #6534 from matrix-org/erikj/extend_mypy
* commit '7e67cfc87':
  Newsfile
  Include more folders in mypy
-rw-r--r--changelog.d/6534.misc1
-rw-r--r--tox.ini14
2 files changed, 14 insertions, 1 deletions
diff --git a/changelog.d/6534.misc b/changelog.d/6534.misc
new file mode 100644

index 0000000000..7df6bb442a --- /dev/null +++ b/changelog.d/6534.misc
@@ -0,0 +1 @@ +Test more folders against mypy. diff --git a/tox.ini b/tox.ini
index ed18c43a0c..8396c593ee 100644 --- a/tox.ini +++ b/tox.ini
@@ -177,5 +177,17 @@ env = MYPYPATH = stubs/ extras = all commands = mypy \ + synapse/config/ \ + synapse/handlers/ui_auth \ synapse/logging/ \ - synapse/config/ + synapse/module_api \ + synapse/rest/consent \ + synapse/rest/media/v0 \ + synapse/rest/saml2 \ + synapse/spam_checker_api \ + synapse/storage/engines \ + synapse/streams + +# To find all folders that pass mypy you run: +# +# find synapse/* -type d -not -name __pycache__ -exec bash -c "mypy '{}' > /dev/null" \; -print