Newer
Older
plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
check_untyped_defs = True
show_error_codes = True
show_traceback = True
mypy_path = stubs
warn_unreachable = True
no_implicit_optional = True
# To find all folders that pass mypy you run:
#
# find synapse/* -type d -not -name __pycache__ -exec bash -c "mypy '{}' > /dev/null" \; -print
scripts-dev/sign_json,
synapse/__init__.py,
synapse/api,
synapse/appservice,
synapse/config,
synapse/http,
synapse/metrics,
synapse/module_api,
synapse/notifier.py,
synapse/replication,
synapse/rest,
synapse/server.py,
synapse/server_notices,
synapse/spam_checker_api,
synapse/state,
synapse/storage/__init__.py,
synapse/storage/_base.py,
synapse/storage/background_updates.py,
synapse/storage/databases/main/appservice.py,
synapse/storage/databases/main/client_ips.py,
synapse/storage/databases/main/events.py,
synapse/storage/databases/main/keys.py,
synapse/storage/databases/main/pusher.py,
synapse/storage/databases/main/registration.py,
synapse/storage/databases/main/relations.py,
synapse/storage/databases/main/session.py,
synapse/storage/databases/main/stream.py,
synapse/storage/databases/main/ui_auth.py,
synapse/storage/databases/state,
synapse/storage/database.py,
synapse/storage/engines,
synapse/storage/keys.py,
synapse/storage/persist_events.py,
synapse/storage/prepare_database.py,
synapse/storage/purge_events.py,
synapse/storage/push_rule.py,
synapse/storage/relations.py,
synapse/storage/roommember.py,
synapse/storage/types.py,
synapse/storage/util,
synapse/streams,
synapse/types.py,
tests/test_event_auth.py,
tests/handlers/test_password_providers.py,
tests/handlers/test_room.py,
tests/handlers/test_room_summary.py,
tests/handlers/test_send_email.py,

Patrick Cloke
committed
tests/handlers/test_sync.py,
tests/handlers/test_user_directory.py,
tests/rest/client/test_login.py,
tests/rest/client/test_auth.py,
tests/rest/client/test_relations.py,
tests/rest/media/v1/test_filepath.py,
tests/rest/media/v1/test_oembed.py,
tests/storage/test_state.py,
tests/storage/test_user_directory.py,
tests/util/test_itertools.py,
tests/util/test_stream_change_cache.py
[mypy-synapse.api.*]
disallow_untyped_defs = True
[mypy-synapse.crypto.*]
disallow_untyped_defs = True
[mypy-synapse.events.*]
disallow_untyped_defs = True
[mypy-synapse.handlers.*]
disallow_untyped_defs = True
[mypy-synapse.push.*]
disallow_untyped_defs = True
[mypy-synapse.rest.*]
disallow_untyped_defs = True
[mypy-synapse.server_notices.*]
disallow_untyped_defs = True
[mypy-synapse.state.*]
disallow_untyped_defs = True
[mypy-synapse.storage.databases.main.client_ips]
disallow_untyped_defs = True
[mypy-synapse.storage.util.*]
disallow_untyped_defs = True
[mypy-synapse.streams.*]
disallow_untyped_defs = True
[mypy-synapse.util.batching_queue]
disallow_untyped_defs = True
[mypy-synapse.util.caches.cached_call]
disallow_untyped_defs = True
[mypy-synapse.util.caches.dictionary_cache]
disallow_untyped_defs = True
[mypy-synapse.util.caches.lrucache]
disallow_untyped_defs = True
[mypy-synapse.util.caches.response_cache]
disallow_untyped_defs = True
[mypy-synapse.util.caches.stream_change_cache]
disallow_untyped_defs = True
[mypy-synapse.util.caches.ttl_cache]
disallow_untyped_defs = True
[mypy-synapse.util.daemonize]
disallow_untyped_defs = True
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
[mypy-synapse.util.file_consumer]
disallow_untyped_defs = True
[mypy-synapse.util.frozenutils]
disallow_untyped_defs = True
[mypy-synapse.util.hash]
disallow_untyped_defs = True
[mypy-synapse.util.httpresourcetree]
disallow_untyped_defs = True
[mypy-synapse.util.iterutils]
disallow_untyped_defs = True
[mypy-synapse.util.linked_list]
disallow_untyped_defs = True
[mypy-synapse.util.logcontext]
disallow_untyped_defs = True
[mypy-synapse.util.logformatter]
disallow_untyped_defs = True
[mypy-synapse.util.macaroons]
disallow_untyped_defs = True
[mypy-synapse.util.manhole]
disallow_untyped_defs = True
[mypy-synapse.util.module_loader]
disallow_untyped_defs = True
[mypy-synapse.util.msisdn]
disallow_untyped_defs = True
[mypy-synapse.util.patch_inline_callbacks]
disallow_untyped_defs = True
[mypy-synapse.util.ratelimitutils]
disallow_untyped_defs = True
[mypy-synapse.util.retryutils]
disallow_untyped_defs = True
[mypy-synapse.util.rlimit]
disallow_untyped_defs = True
[mypy-synapse.util.stringutils]
disallow_untyped_defs = True
[mypy-synapse.util.templates]
disallow_untyped_defs = True
[mypy-synapse.util.threepids]
disallow_untyped_defs = True
[mypy-synapse.util.wheel_timer]
disallow_untyped_defs = True
[mypy-synapse.util.versionstring]
disallow_untyped_defs = True
[mypy-tests.handlers.test_user_directory]
disallow_untyped_defs = True
[mypy-tests.storage.test_user_directory]
disallow_untyped_defs = True

David Robertson
committed
;; Dependencies without annotations
;; Before ignoring a module, check to see if type stubs are available.
;; The `typeshed` project maintains stubs here:
;; https://github.com/python/typeshed/tree/master/stubs
;; and for each package `foo` there's a corresponding `types-foo` package on PyPI,
;; which we can pull in as a dev dependency by adding to `setup.py`'s
;; `CONDITIONAL_REQUIREMENTS["mypy"]` list.

David Robertson
committed
[mypy-authlib.*]
ignore_missing_imports = True
[mypy-bcrypt]
ignore_missing_imports = True

David Robertson
committed
[mypy-canonicaljson]
ignore_missing_imports = True

David Robertson
committed
[mypy-constantly]
ignore_missing_imports = True

David Robertson
committed
[mypy-daemonize]
ignore_missing_imports = True
[mypy-h11]
ignore_missing_imports = True

David Robertson
committed
[mypy-hiredis]
ignore_missing_imports = True

David Robertson
committed
[mypy-hyperlink]
ignore_missing_imports = True

David Robertson
committed
[mypy-ijson.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-jaeger_client.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-josepy.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-jwt.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-lxml]
ignore_missing_imports = True

David Robertson
committed
[mypy-msgpack]
ignore_missing_imports = True

David Robertson
committed
[mypy-nacl.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-netaddr]
ignore_missing_imports = True

David Robertson
committed
[mypy-opentracing]
ignore_missing_imports = True

David Robertson
committed
[mypy-phonenumbers.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-prometheus_client.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-pymacaroons.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-pympler.*]

David Robertson
committed
[mypy-rust_python_jaeger_reporter.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-saml2.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-sentry_sdk]
ignore_missing_imports = True

David Robertson
committed
[mypy-service_identity.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-signedjson.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-treq.*]
ignore_missing_imports = True

Erik Johnston
committed

David Robertson
committed
[mypy-twisted.*]
ignore_missing_imports = True

David Robertson
committed
[mypy-zope]

Erik Johnston
committed
ignore_missing_imports = True