Merge pull request #6534 from matrix-org/erikj/extend_mypy

Include more folders in mypy
This commit is contained in:
Erik Johnston 2019-12-12 17:21:42 +00:00 committed by GitHub
commit 7e67cfc87d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

1
changelog.d/6534.misc Normal file
View File

@ -0,0 +1 @@
Test more folders against mypy.

14
tox.ini
View File

@ -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