2019-09-12 18:29:55 +02:00
|
|
|
[mypy]
|
2019-10-31 16:43:24 +01:00
|
|
|
namespace_packages = True
|
2020-09-03 16:38:32 +02:00
|
|
|
plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
|
2021-03-26 17:49:46 +01:00
|
|
|
follow_imports = normal
|
2019-10-31 16:43:24 +01:00
|
|
|
check_untyped_defs = True
|
|
|
|
show_error_codes = True
|
|
|
|
show_traceback = True
|
|
|
|
mypy_path = stubs
|
2020-10-01 14:09:18 +02:00
|
|
|
warn_unreachable = True
|
2021-03-26 17:49:46 +01:00
|
|
|
local_partial_types = True
|
2021-04-05 15:10:18 +02:00
|
|
|
no_implicit_optional = True
|
2020-12-17 23:58:00 +01:00
|
|
|
|
|
|
|
# To find all folders that pass mypy you run:
|
|
|
|
#
|
|
|
|
# find synapse/* -type d -not -name __pycache__ -exec bash -c "mypy '{}' > /dev/null" \; -print
|
|
|
|
|
2020-08-26 15:59:37 +02:00
|
|
|
files =
|
2020-11-24 13:53:00 +01:00
|
|
|
scripts-dev/sign_json,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/api,
|
|
|
|
synapse/appservice,
|
|
|
|
synapse/config,
|
2021-01-04 16:04:50 +01:00
|
|
|
synapse/crypto,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/event_auth.py,
|
|
|
|
synapse/events/builder.py,
|
|
|
|
synapse/events/spamcheck.py,
|
2021-03-24 11:49:01 +01:00
|
|
|
synapse/events/third_party_rules.py,
|
|
|
|
synapse/events/validator.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/federation,
|
2021-02-17 14:41:47 +01:00
|
|
|
synapse/groups,
|
2021-01-28 14:34:19 +01:00
|
|
|
synapse/handlers,
|
2021-08-18 19:53:20 +02:00
|
|
|
synapse/http/additional_resource.py,
|
2020-11-25 19:30:47 +01:00
|
|
|
synapse/http/client.py,
|
2020-11-25 13:07:21 +01:00
|
|
|
synapse/http/federation/matrix_federation_agent.py,
|
2021-08-18 19:53:20 +02:00
|
|
|
synapse/http/federation/srv_resolver.py,
|
2020-09-01 15:15:22 +02:00
|
|
|
synapse/http/federation/well_known_resolver.py,
|
2020-11-25 13:07:21 +01:00
|
|
|
synapse/http/matrixfederationclient.py,
|
2021-08-18 19:53:20 +02:00
|
|
|
synapse/http/proxyagent.py,
|
2021-06-08 14:30:48 +02:00
|
|
|
synapse/http/servlet.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/http/server.py,
|
|
|
|
synapse/http/site.py,
|
2020-09-08 22:50:51 +02:00
|
|
|
synapse/logging,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/metrics,
|
|
|
|
synapse/module_api,
|
|
|
|
synapse/notifier.py,
|
2020-12-11 17:43:53 +01:00
|
|
|
synapse/push,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/replication,
|
|
|
|
synapse/rest,
|
|
|
|
synapse/server.py,
|
|
|
|
synapse/server_notices,
|
|
|
|
synapse/spam_checker_api,
|
|
|
|
synapse/state,
|
2020-12-30 14:09:53 +01:00
|
|
|
synapse/storage/__init__.py,
|
|
|
|
synapse/storage/_base.py,
|
|
|
|
synapse/storage/background_updates.py,
|
2020-10-28 16:12:21 +01:00
|
|
|
synapse/storage/databases/main/appservice.py,
|
2020-09-11 13:22:55 +02:00
|
|
|
synapse/storage/databases/main/events.py,
|
2021-01-04 16:04:50 +01:00
|
|
|
synapse/storage/databases/main/keys.py,
|
2020-12-16 17:25:30 +01:00
|
|
|
synapse/storage/databases/main/pusher.py,
|
2020-10-22 12:56:58 +02:00
|
|
|
synapse/storage/databases/main/registration.py,
|
2021-08-24 14:14:03 +02:00
|
|
|
synapse/storage/databases/main/session.py,
|
2020-09-02 18:52:38 +02:00
|
|
|
synapse/storage/databases/main/stream.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/storage/databases/main/ui_auth.py,
|
|
|
|
synapse/storage/database.py,
|
|
|
|
synapse/storage/engines,
|
2020-12-30 14:09:53 +01:00
|
|
|
synapse/storage/keys.py,
|
2020-09-11 13:22:55 +02:00
|
|
|
synapse/storage/persist_events.py,
|
2020-12-30 14:09:53 +01:00
|
|
|
synapse/storage/prepare_database.py,
|
|
|
|
synapse/storage/purge_events.py,
|
|
|
|
synapse/storage/push_rule.py,
|
|
|
|
synapse/storage/relations.py,
|
|
|
|
synapse/storage/roommember.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/storage/state.py,
|
2020-12-30 14:09:53 +01:00
|
|
|
synapse/storage/types.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
synapse/storage/util,
|
|
|
|
synapse/streams,
|
|
|
|
synapse/types.py,
|
2021-09-10 18:03:18 +02:00
|
|
|
synapse/util,
|
2021-03-24 11:49:01 +01:00
|
|
|
synapse/visibility.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
tests/replication,
|
2021-07-14 15:13:40 +02:00
|
|
|
tests/test_event_auth.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
tests/test_utils,
|
2020-12-01 12:10:42 +01:00
|
|
|
tests/handlers/test_password_providers.py,
|
2021-09-06 12:37:54 +02:00
|
|
|
tests/handlers/test_room.py,
|
2021-08-16 16:49:12 +02:00
|
|
|
tests/handlers/test_room_summary.py,
|
2021-08-27 17:33:41 +02:00
|
|
|
tests/handlers/test_send_email.py,
|
2021-08-19 17:12:55 +02:00
|
|
|
tests/handlers/test_sync.py,
|
2021-08-20 18:50:44 +02:00
|
|
|
tests/rest/client/test_login.py,
|
|
|
|
tests/rest/client/test_auth.py,
|
2021-05-24 21:32:01 +02:00
|
|
|
tests/util/test_itertools.py,
|
2020-08-26 15:59:37 +02:00
|
|
|
tests/util/test_stream_change_cache.py
|
2019-09-12 18:29:55 +02:00
|
|
|
|
2021-09-03 15:22:22 +02:00
|
|
|
[mypy-synapse.rest.client.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-09-10 18:03:18 +02:00
|
|
|
[mypy-synapse.util.batching_queue]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
[mypy-synapse.util.caches.dictionary_cache]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
[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.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
|
|
|
|
|
2020-01-20 18:34:13 +01:00
|
|
|
[mypy-pymacaroons.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2019-09-12 18:29:55 +02:00
|
|
|
[mypy-zope]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-10-28 16:12:21 +01:00
|
|
|
[mypy-bcrypt]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2019-09-12 18:29:55 +02:00
|
|
|
[mypy-constantly]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-twisted.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-treq.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-hyperlink]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-h11]
|
|
|
|
ignore_missing_imports = True
|
2020-12-29 23:42:10 +01:00
|
|
|
|
|
|
|
[mypy-msgpack]
|
|
|
|
ignore_missing_imports = True
|
2019-09-12 18:29:55 +02:00
|
|
|
|
|
|
|
[mypy-opentracing]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-11-25 19:30:47 +01:00
|
|
|
[mypy-OpenSSL.*]
|
2019-09-12 18:29:55 +02:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-netaddr]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-saml2.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-canonicaljson]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-06-04 10:25:33 +02:00
|
|
|
[mypy-jaeger_client.*]
|
2019-09-12 18:29:55 +02:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-jsonschema]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-signedjson.*]
|
|
|
|
ignore_missing_imports = True
|
2019-10-10 10:39:35 +02:00
|
|
|
|
|
|
|
[mypy-prometheus_client.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-service_identity.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-daemonize]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-sentry_sdk]
|
|
|
|
ignore_missing_imports = True
|
2020-01-20 18:38:21 +01:00
|
|
|
|
|
|
|
[mypy-PIL.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-lxml]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-jwt.*]
|
|
|
|
ignore_missing_imports = True
|
2020-05-08 14:30:40 +02:00
|
|
|
|
|
|
|
[mypy-authlib.*]
|
|
|
|
ignore_missing_imports = True
|
2020-06-17 15:13:41 +02:00
|
|
|
|
|
|
|
[mypy-rust_python_jaeger_reporter.*]
|
|
|
|
ignore_missing_imports = True
|
2020-08-12 16:05:50 +02:00
|
|
|
|
|
|
|
[mypy-nacl.*]
|
|
|
|
ignore_missing_imports = True
|
2020-10-02 10:57:12 +02:00
|
|
|
|
|
|
|
[mypy-hiredis]
|
|
|
|
ignore_missing_imports = True
|
2021-01-26 16:50:21 +01:00
|
|
|
|
|
|
|
[mypy-josepy.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-05-05 17:54:36 +02:00
|
|
|
[mypy-pympler.*]
|
|
|
|
ignore_missing_imports = True
|
2021-05-20 17:11:48 +02:00
|
|
|
|
2021-05-24 21:32:01 +02:00
|
|
|
[mypy-phonenumbers.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-05-20 17:11:48 +02:00
|
|
|
[mypy-ijson.*]
|
|
|
|
ignore_missing_imports = True
|