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
|
2019-12-06 12:42:26 -05:00
|
|
|
follow_imports = silent
|
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
|
2020-12-17 17:58:00 -05: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 09:59:37 -04:00
|
|
|
files =
|
2020-11-24 07:53:00 -05:00
|
|
|
scripts-dev/sign_json,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/api,
|
|
|
|
synapse/appservice,
|
|
|
|
synapse/config,
|
2021-01-04 10:04:50 -05:00
|
|
|
synapse/crypto,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/event_auth.py,
|
|
|
|
synapse/events/builder.py,
|
2020-11-03 07:13:48 -05:00
|
|
|
synapse/events/validator.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/events/spamcheck.py,
|
|
|
|
synapse/federation,
|
2020-10-21 06:44:31 -04:00
|
|
|
synapse/handlers/_base.py,
|
2020-10-09 07:20:51 -04:00
|
|
|
synapse/handlers/account_data.py,
|
2020-10-26 14:17:31 -04:00
|
|
|
synapse/handlers/account_validity.py,
|
2020-12-29 17:42:10 -05:00
|
|
|
synapse/handlers/admin.py,
|
2020-10-21 06:44:31 -04:00
|
|
|
synapse/handlers/appservice.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/auth.py,
|
|
|
|
synapse/handlers/cas_handler.py,
|
2020-10-09 07:20:51 -04:00
|
|
|
synapse/handlers/deactivate_account.py,
|
2020-10-07 08:58:21 -04:00
|
|
|
synapse/handlers/device.py,
|
2020-10-09 07:20:51 -04:00
|
|
|
synapse/handlers/devicemessage.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/directory.py,
|
2020-09-03 17:02:29 -04:00
|
|
|
synapse/handlers/events.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/federation.py,
|
|
|
|
synapse/handlers/identity.py,
|
2020-09-03 17:02:29 -04:00
|
|
|
synapse/handlers/initial_sync.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/message.py,
|
|
|
|
synapse/handlers/oidc_handler.py,
|
2020-09-03 17:02:29 -04:00
|
|
|
synapse/handlers/pagination.py,
|
2020-10-09 07:20:51 -04:00
|
|
|
synapse/handlers/password_policy.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/presence.py,
|
2020-10-21 06:44:31 -04:00
|
|
|
synapse/handlers/profile.py,
|
2020-10-09 07:20:51 -04:00
|
|
|
synapse/handlers/read_marker.py,
|
2021-01-04 10:05:12 -05:00
|
|
|
synapse/handlers/receipts.py,
|
2020-11-23 13:28:03 -05:00
|
|
|
synapse/handlers/register.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/room.py,
|
2020-12-29 17:42:10 -05:00
|
|
|
synapse/handlers/room_list.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/room_member.py,
|
|
|
|
synapse/handlers/room_member_worker.py,
|
|
|
|
synapse/handlers/saml_handler.py,
|
2020-12-08 09:03:38 -05:00
|
|
|
synapse/handlers/sso.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/sync.py,
|
2021-01-04 10:05:12 -05:00
|
|
|
synapse/handlers/user_directory.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/handlers/ui_auth,
|
2020-11-25 13:30:47 -05:00
|
|
|
synapse/http/client.py,
|
2020-11-25 07:07:21 -05:00
|
|
|
synapse/http/federation/matrix_federation_agent.py,
|
2020-09-01 09:15:22 -04:00
|
|
|
synapse/http/federation/well_known_resolver.py,
|
2020-11-25 07:07:21 -05:00
|
|
|
synapse/http/matrixfederationclient.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/http/server.py,
|
|
|
|
synapse/http/site.py,
|
2020-09-08 16:50:51 -04:00
|
|
|
synapse/logging,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/metrics,
|
|
|
|
synapse/module_api,
|
|
|
|
synapse/notifier.py,
|
2020-12-11 11:43:53 -05:00
|
|
|
synapse/push,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/replication,
|
|
|
|
synapse/rest,
|
|
|
|
synapse/server.py,
|
|
|
|
synapse/server_notices,
|
|
|
|
synapse/spam_checker_api,
|
|
|
|
synapse/state,
|
2020-12-30 08:09:53 -05:00
|
|
|
synapse/storage/__init__.py,
|
|
|
|
synapse/storage/_base.py,
|
|
|
|
synapse/storage/background_updates.py,
|
2020-10-28 11:12:21 -04:00
|
|
|
synapse/storage/databases/main/appservice.py,
|
2020-09-11 07:22:55 -04:00
|
|
|
synapse/storage/databases/main/events.py,
|
2021-01-04 10:04:50 -05:00
|
|
|
synapse/storage/databases/main/keys.py,
|
2020-12-16 11:25:30 -05:00
|
|
|
synapse/storage/databases/main/pusher.py,
|
2020-10-22 06:56:58 -04:00
|
|
|
synapse/storage/databases/main/registration.py,
|
2020-09-02 12:52:38 -04:00
|
|
|
synapse/storage/databases/main/stream.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/storage/databases/main/ui_auth.py,
|
|
|
|
synapse/storage/database.py,
|
|
|
|
synapse/storage/engines,
|
2020-12-30 08:09:53 -05:00
|
|
|
synapse/storage/keys.py,
|
2020-09-11 07:22:55 -04:00
|
|
|
synapse/storage/persist_events.py,
|
2020-12-30 08:09:53 -05: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 09:59:37 -04:00
|
|
|
synapse/storage/state.py,
|
2020-12-30 08:09:53 -05:00
|
|
|
synapse/storage/types.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/storage/util,
|
|
|
|
synapse/streams,
|
|
|
|
synapse/types.py,
|
2020-09-08 16:50:51 -04:00
|
|
|
synapse/util/async_helpers.py,
|
2020-10-15 06:44:39 -04:00
|
|
|
synapse/util/caches,
|
2020-08-26 09:59:37 -04:00
|
|
|
synapse/util/metrics.py,
|
|
|
|
tests/replication,
|
|
|
|
tests/test_utils,
|
2020-12-01 06:10:42 -05:00
|
|
|
tests/handlers/test_password_providers.py,
|
2021-01-06 10:51:18 -05:00
|
|
|
tests/rest/client/v1/test_login.py,
|
2020-08-26 09:59:37 -04:00
|
|
|
tests/rest/client/v2_alpha/test_auth.py,
|
|
|
|
tests/util/test_stream_change_cache.py
|
2019-09-12 12:29:55 -04:00
|
|
|
|
2020-01-20 12:34:13 -05:00
|
|
|
[mypy-pymacaroons.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2019-09-12 12:29:55 -04:00
|
|
|
[mypy-zope]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-10-28 11:12:21 -04:00
|
|
|
[mypy-bcrypt]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2019-09-12 12:29:55 -04: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 17:42:10 -05:00
|
|
|
|
|
|
|
[mypy-msgpack]
|
|
|
|
ignore_missing_imports = True
|
2019-09-12 12:29:55 -04:00
|
|
|
|
|
|
|
[mypy-opentracing]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
2020-11-25 13:30:47 -05:00
|
|
|
[mypy-OpenSSL.*]
|
2019-09-12 12:29:55 -04:00
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-netaddr]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-saml2.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-unpaddedbase64]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-canonicaljson]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-jaeger_client]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-jsonschema]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-signedjson.*]
|
|
|
|
ignore_missing_imports = True
|
2019-10-10 04:39:35 -04: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 12:38:21 -05:00
|
|
|
|
|
|
|
[mypy-PIL.*]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-lxml]
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-jwt.*]
|
|
|
|
ignore_missing_imports = True
|
2020-05-08 08:30:40 -04:00
|
|
|
|
|
|
|
[mypy-authlib.*]
|
|
|
|
ignore_missing_imports = True
|
2020-06-17 09:13:41 -04:00
|
|
|
|
|
|
|
[mypy-rust_python_jaeger_reporter.*]
|
|
|
|
ignore_missing_imports = True
|
2020-08-12 10:05:50 -04:00
|
|
|
|
|
|
|
[mypy-nacl.*]
|
|
|
|
ignore_missing_imports = True
|
2020-10-02 04:57:12 -04:00
|
|
|
|
|
|
|
[mypy-hiredis]
|
|
|
|
ignore_missing_imports = True
|