2019-09-12 12:29:55 -04:00
|
|
|
[mypy]
|
2019-10-31 11:43:24 -04:00
|
|
|
namespace_packages = True
|
2020-09-03 10:38:32 -04:00
|
|
|
plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
|
2021-03-26 12:49:46 -04:00
|
|
|
follow_imports = normal
|
2019-10-31 11:43:24 -04:00
|
|
|
check_untyped_defs = True
|
|
|
|
show_error_codes = True
|
|
|
|
show_traceback = True
|
|
|
|
mypy_path = stubs
|
2020-10-01 08:09:18 -04:00
|
|
|
warn_unreachable = True
|
2021-03-26 12:49:46 -04:00
|
|
|
local_partial_types = True
|
2021-04-05 09:10:18 -04:00
|
|
|
no_implicit_optional = True
|
2020-12-17 17:58:00 -05:00
|
|
|
|
2020-08-26 09:59:37 -04:00
|
|
|
files =
|
2020-11-24 07:53:00 -05:00
|
|
|
scripts-dev/sign_json,
|
2021-11-09 11:22:47 -05:00
|
|
|
setup.py,
|
|
|
|
synapse/,
|
|
|
|
tests/
|
|
|
|
|
|
|
|
# Note: Better exclusion syntax coming in mypy > 0.910
|
|
|
|
# https://github.com/python/mypy/pull/11329
|
|
|
|
#
|
|
|
|
# For now, set the (?x) flag enable "verbose" regexes
|
|
|
|
# https://docs.python.org/3/library/re.html#re.X
|
|
|
|
exclude = (?x)
|
|
|
|
^(
|
|
|
|
|synapse/storage/databases/__init__.py
|
|
|
|
|synapse/storage/databases/main/__init__.py
|
|
|
|
|synapse/storage/databases/main/cache.py
|
|
|
|
|synapse/storage/databases/main/devices.py
|
|
|
|
|synapse/storage/databases/main/e2e_room_keys.py
|
|
|
|
|synapse/storage/databases/main/end_to_end_keys.py
|
|
|
|
|synapse/storage/databases/main/event_federation.py
|
|
|
|
|synapse/storage/databases/main/event_push_actions.py
|
|
|
|
|synapse/storage/databases/main/events_bg_updates.py
|
|
|
|
|synapse/storage/databases/main/group_server.py
|
|
|
|
|synapse/storage/databases/main/metrics.py
|
|
|
|
|synapse/storage/databases/main/monthly_active_users.py
|
|
|
|
|synapse/storage/databases/main/presence.py
|
|
|
|
|synapse/storage/databases/main/purge_events.py
|
|
|
|
|synapse/storage/databases/main/push_rule.py
|
|
|
|
|synapse/storage/databases/main/receipts.py
|
|
|
|
|synapse/storage/databases/main/room.py
|
|
|
|
|synapse/storage/databases/main/roommember.py
|
|
|
|
|synapse/storage/databases/main/search.py
|
|
|
|
|synapse/storage/databases/main/state.py
|
|
|
|
|synapse/storage/databases/main/stats.py
|
|
|
|
|synapse/storage/databases/main/transactions.py
|
|
|
|
|synapse/storage/databases/main/user_directory.py
|
|
|
|
|synapse/storage/schema/
|
|
|
|
|
|
|
|
|tests/api/test_auth.py
|
|
|
|
|tests/api/test_ratelimiting.py
|
|
|
|
|tests/app/test_openid_listener.py
|
|
|
|
|tests/appservice/test_scheduler.py
|
|
|
|
|tests/config/test_cache.py
|
|
|
|
|tests/config/test_tls.py
|
|
|
|
|tests/crypto/test_keyring.py
|
|
|
|
|tests/events/test_presence_router.py
|
|
|
|
|tests/events/test_utils.py
|
|
|
|
|tests/federation/test_federation_catch_up.py
|
|
|
|
|tests/federation/test_federation_sender.py
|
|
|
|
|tests/federation/test_federation_server.py
|
|
|
|
|tests/federation/transport/test_knocking.py
|
|
|
|
|tests/federation/transport/test_server.py
|
|
|
|
|tests/handlers/test_cas.py
|
|
|
|
|tests/handlers/test_directory.py
|
|
|
|
|tests/handlers/test_e2e_keys.py
|
|
|
|
|tests/handlers/test_federation.py
|
|
|
|
|tests/handlers/test_oidc.py
|
|
|
|
|tests/handlers/test_presence.py
|
|
|
|
|tests/handlers/test_profile.py
|
|
|
|
|tests/handlers/test_saml.py
|
|
|
|
|tests/handlers/test_typing.py
|
|
|
|
|tests/http/federation/test_matrix_federation_agent.py
|
|
|
|
|tests/http/federation/test_srv_resolver.py
|
|
|
|
|tests/http/test_fedclient.py
|
|
|
|
|tests/http/test_proxyagent.py
|
|
|
|
|tests/http/test_servlet.py
|
|
|
|
|tests/http/test_site.py
|
|
|
|
|tests/logging/__init__.py
|
|
|
|
|tests/logging/test_terse_json.py
|
|
|
|
|tests/module_api/test_api.py
|
|
|
|
|tests/push/test_email.py
|
|
|
|
|tests/push/test_http.py
|
|
|
|
|tests/push/test_presentable_names.py
|
|
|
|
|tests/push/test_push_rule_evaluator.py
|
|
|
|
|tests/rest/admin/test_admin.py
|
|
|
|
|tests/rest/admin/test_user.py
|
|
|
|
|tests/rest/admin/test_username_available.py
|
|
|
|
|tests/rest/client/test_account.py
|
|
|
|
|tests/rest/client/test_events.py
|
|
|
|
|tests/rest/client/test_filter.py
|
|
|
|
|tests/rest/client/test_groups.py
|
|
|
|
|tests/rest/client/test_register.py
|
|
|
|
|tests/rest/client/test_report_event.py
|
|
|
|
|tests/rest/client/test_rooms.py
|
|
|
|
|tests/rest/client/test_third_party_rules.py
|
|
|
|
|tests/rest/client/test_transactions.py
|
|
|
|
|tests/rest/client/test_typing.py
|
|
|
|
|tests/rest/client/utils.py
|
|
|
|
|tests/rest/key/v2/test_remote_key_resource.py
|
|
|
|
|tests/rest/media/v1/test_base.py
|
|
|
|
|tests/rest/media/v1/test_media_storage.py
|
|
|
|
|tests/rest/media/v1/test_url_preview.py
|
|
|
|
|tests/scripts/test_new_matrix_user.py
|
|
|
|
|tests/server.py
|
|
|
|
|tests/server_notices/test_resource_limits_server_notices.py
|
|
|
|
|tests/state/test_v2.py
|
|
|
|
|tests/storage/test_account_data.py
|
|
|
|
|tests/storage/test_background_update.py
|
|
|
|
|tests/storage/test_base.py
|
|
|
|
|tests/storage/test_client_ips.py
|
|
|
|
|tests/storage/test_database.py
|
|
|
|
|tests/storage/test_event_federation.py
|
|
|
|
|tests/storage/test_id_generators.py
|
|
|
|
|tests/storage/test_roommember.py
|
|
|
|
|tests/test_metrics.py
|
|
|
|
|tests/test_phone_home.py
|
|
|
|
|tests/test_server.py
|
|
|
|
|tests/test_state.py
|
|
|
|
|tests/test_terms_auth.py
|
|
|
|
|tests/unittest.py
|
|
|
|
|tests/util/caches/test_cached_call.py
|
|
|
|
|tests/util/caches/test_deferred_cache.py
|
|
|
|
|tests/util/caches/test_descriptors.py
|
|
|
|
|tests/util/caches/test_response_cache.py
|
|
|
|
|tests/util/caches/test_ttlcache.py
|
|
|
|
|tests/util/test_async_helpers.py
|
|
|
|
|tests/util/test_batching_queue.py
|
|
|
|
|tests/util/test_dict_cache.py
|
|
|
|
|tests/util/test_expiring_cache.py
|
|
|
|
|tests/util/test_file_consumer.py
|
|
|
|
|tests/util/test_linearizer.py
|
|
|
|
|tests/util/test_logcontext.py
|
|
|
|
|tests/util/test_lrucache.py
|
|
|
|
|tests/util/test_rwlock.py
|
|
|
|
|tests/util/test_wheel_timer.py
|
|
|
|
|tests/utils.py
|
|
|
|
)$
|
2019-09-12 12:29:55 -04:00
|
|
|
|
2021-10-18 15:01:10 -04:00
|
|
|
[mypy-synapse.api.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-10 15:06:54 -05:00
|
|
|
[mypy-synapse.app.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-23 10:21:19 -05:00
|
|
|
[mypy-synapse.config._base]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-10-21 09:07:07 -04:00
|
|
|
[mypy-synapse.crypto.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-10-13 07:24:07 -04:00
|
|
|
[mypy-synapse.events.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-12-02 11:18:10 -05:00
|
|
|
[mypy-synapse.federation.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
[mypy-synapse.federation.transport.client]
|
|
|
|
disallow_untyped_defs = False
|
|
|
|
|
2021-09-20 08:56:23 -04:00
|
|
|
[mypy-synapse.handlers.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-17 14:07:02 -05:00
|
|
|
[mypy-synapse.metrics.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-29 06:28:12 -05:00
|
|
|
[mypy-synapse.module_api.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-10-11 12:42:10 -04:00
|
|
|
[mypy-synapse.push.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-09-15 08:45:32 -04:00
|
|
|
[mypy-synapse.rest.*]
|
2021-09-03 09:22:22 -04:00
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-10-07 14:55:15 -04:00
|
|
|
[mypy-synapse.server_notices.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-10-06 13:55:25 -04:00
|
|
|
[mypy-synapse.state.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-12-13 11:28:10 -05:00
|
|
|
[mypy-synapse.storage.databases.main.account_data]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-12 15:10:03 -05:00
|
|
|
[mypy-synapse.storage.databases.main.client_ips]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-15 07:59:05 -05:00
|
|
|
[mypy-synapse.storage.databases.main.directory]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-26 13:41:31 -05:00
|
|
|
[mypy-synapse.storage.databases.main.events_worker]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-12 15:10:03 -05:00
|
|
|
[mypy-synapse.storage.databases.main.room_batch]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-15 07:59:33 -05:00
|
|
|
[mypy-synapse.storage.databases.main.profile]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-12 15:24:12 -05:00
|
|
|
[mypy-synapse.storage.databases.main.state_deltas]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-12 15:10:03 -05:00
|
|
|
[mypy-synapse.storage.databases.main.user_erasure_store]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
[mypy-synapse.storage.util.*]
|
2021-10-08 10:25:16 -04:00
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
[mypy-synapse.streams.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-16 08:47:36 -05:00
|
|
|
[mypy-synapse.util.*]
|
2021-09-10 12:03:18 -04:00
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-16 08:47:36 -05:00
|
|
|
[mypy-synapse.util.caches.treecache]
|
|
|
|
disallow_untyped_defs = False
|
2021-10-06 06:20:49 -04:00
|
|
|
|
2021-11-12 15:10:03 -05:00
|
|
|
[mypy-tests.handlers.test_user_directory]
|
|
|
|
disallow_untyped_defs = True
|
2021-11-15 07:59:33 -05:00
|
|
|
|
|
|
|
[mypy-tests.storage.test_profile]
|
|
|
|
disallow_untyped_defs = True
|
2021-11-12 15:10:03 -05:00
|
|
|
|
|
|
|
[mypy-tests.storage.test_user_directory]
|
2021-09-30 06:04:40 -04:00
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-12 14:56:00 -05:00
|
|
|
[mypy-tests.rest.client.test_directory]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
2021-11-29 06:11:46 -05:00
|
|
|
[mypy-tests.federation.transport.test_client]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
;; 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.
|
2020-01-20 12:34:13 -05:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-authlib.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-10-28 11:12:21 -04:00
|
|
|
[mypy-bcrypt]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-canonicaljson]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-constantly]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-daemonize]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-h11]
|
|
|
|
ignore_missing_imports = True
|
2020-12-29 17:42:10 -05:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-hiredis]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-hyperlink]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-ijson.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-jaeger_client.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-josepy.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-jwt.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-lxml]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-msgpack]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
2019-10-10 04:39:35 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-nacl.*]
|
2019-10-10 04:39:35 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-netaddr]
|
2019-10-10 04:39:35 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-opentracing]
|
2019-10-10 04:39:35 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-11-09 14:04:53 -05:00
|
|
|
[mypy-parameterized.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-phonenumbers.*]
|
2019-10-10 04:39:35 -04:00
|
|
|
ignore_missing_imports = True
|
2020-01-20 12:38:21 -05:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-prometheus_client.*]
|
2020-01-20 12:38:21 -05:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-pymacaroons.*]
|
2020-01-20 12:38:21 -05:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-pympler.*]
|
2020-01-20 12:38:21 -05:00
|
|
|
ignore_missing_imports = True
|
2020-05-08 08:30:40 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-rust_python_jaeger_reporter.*]
|
2020-05-08 08:30:40 -04:00
|
|
|
ignore_missing_imports = True
|
2020-06-17 09:13:41 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-saml2.*]
|
2020-06-17 09:13:41 -04:00
|
|
|
ignore_missing_imports = True
|
2020-08-12 10:05:50 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-sentry_sdk]
|
2020-08-12 10:05:50 -04:00
|
|
|
ignore_missing_imports = True
|
2020-10-02 04:57:12 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-service_identity.*]
|
2020-10-02 04:57:12 -04:00
|
|
|
ignore_missing_imports = True
|
2021-01-26 10:50:21 -05:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-signedjson.*]
|
2021-01-26 10:50:21 -05:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-treq.*]
|
2021-05-05 11:54:36 -04:00
|
|
|
ignore_missing_imports = True
|
2021-05-20 11:11:48 -04:00
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-twisted.*]
|
2021-05-24 15:32:01 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2021-10-08 09:49:41 -04:00
|
|
|
[mypy-zope]
|
2021-05-20 11:11:48 -04:00
|
|
|
ignore_missing_imports = True
|