mypy.ini 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. [mypy]
  2. namespace_packages = True
  3. plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
  4. follow_imports = silent
  5. check_untyped_defs = True
  6. show_error_codes = True
  7. show_traceback = True
  8. mypy_path = stubs
  9. warn_unreachable = True
  10. # To find all folders that pass mypy you run:
  11. #
  12. # find synapse/* -type d -not -name __pycache__ -exec bash -c "mypy '{}' > /dev/null" \; -print
  13. files =
  14. scripts-dev/sign_json,
  15. synapse/api,
  16. synapse/appservice,
  17. synapse/config,
  18. synapse/event_auth.py,
  19. synapse/events/builder.py,
  20. synapse/events/validator.py,
  21. synapse/events/spamcheck.py,
  22. synapse/federation,
  23. synapse/handlers/_base.py,
  24. synapse/handlers/account_data.py,
  25. synapse/handlers/account_validity.py,
  26. synapse/handlers/appservice.py,
  27. synapse/handlers/auth.py,
  28. synapse/handlers/cas_handler.py,
  29. synapse/handlers/deactivate_account.py,
  30. synapse/handlers/device.py,
  31. synapse/handlers/devicemessage.py,
  32. synapse/handlers/directory.py,
  33. synapse/handlers/events.py,
  34. synapse/handlers/federation.py,
  35. synapse/handlers/identity.py,
  36. synapse/handlers/initial_sync.py,
  37. synapse/handlers/message.py,
  38. synapse/handlers/oidc_handler.py,
  39. synapse/handlers/pagination.py,
  40. synapse/handlers/password_policy.py,
  41. synapse/handlers/presence.py,
  42. synapse/handlers/profile.py,
  43. synapse/handlers/read_marker.py,
  44. synapse/handlers/register.py,
  45. synapse/handlers/room.py,
  46. synapse/handlers/room_member.py,
  47. synapse/handlers/room_member_worker.py,
  48. synapse/handlers/saml_handler.py,
  49. synapse/handlers/sso.py,
  50. synapse/handlers/sync.py,
  51. synapse/handlers/ui_auth,
  52. synapse/http/client.py,
  53. synapse/http/federation/matrix_federation_agent.py,
  54. synapse/http/federation/well_known_resolver.py,
  55. synapse/http/matrixfederationclient.py,
  56. synapse/http/server.py,
  57. synapse/http/site.py,
  58. synapse/logging,
  59. synapse/metrics,
  60. synapse/module_api,
  61. synapse/notifier.py,
  62. synapse/push,
  63. synapse/replication,
  64. synapse/rest,
  65. synapse/server.py,
  66. synapse/server_notices,
  67. synapse/spam_checker_api,
  68. synapse/state,
  69. synapse/storage/databases/main/appservice.py,
  70. synapse/storage/databases/main/events.py,
  71. synapse/storage/databases/main/pusher.py,
  72. synapse/storage/databases/main/registration.py,
  73. synapse/storage/databases/main/stream.py,
  74. synapse/storage/databases/main/ui_auth.py,
  75. synapse/storage/database.py,
  76. synapse/storage/engines,
  77. synapse/storage/persist_events.py,
  78. synapse/storage/state.py,
  79. synapse/storage/util,
  80. synapse/streams,
  81. synapse/types.py,
  82. synapse/util/async_helpers.py,
  83. synapse/util/caches,
  84. synapse/util/metrics.py,
  85. tests/replication,
  86. tests/test_utils,
  87. tests/handlers/test_password_providers.py,
  88. tests/rest/client/v2_alpha/test_auth.py,
  89. tests/util/test_stream_change_cache.py
  90. [mypy-pymacaroons.*]
  91. ignore_missing_imports = True
  92. [mypy-zope]
  93. ignore_missing_imports = True
  94. [mypy-bcrypt]
  95. ignore_missing_imports = True
  96. [mypy-constantly]
  97. ignore_missing_imports = True
  98. [mypy-twisted.*]
  99. ignore_missing_imports = True
  100. [mypy-treq.*]
  101. ignore_missing_imports = True
  102. [mypy-hyperlink]
  103. ignore_missing_imports = True
  104. [mypy-h11]
  105. ignore_missing_imports = True
  106. [mypy-opentracing]
  107. ignore_missing_imports = True
  108. [mypy-OpenSSL.*]
  109. ignore_missing_imports = True
  110. [mypy-netaddr]
  111. ignore_missing_imports = True
  112. [mypy-saml2.*]
  113. ignore_missing_imports = True
  114. [mypy-unpaddedbase64]
  115. ignore_missing_imports = True
  116. [mypy-canonicaljson]
  117. ignore_missing_imports = True
  118. [mypy-jaeger_client]
  119. ignore_missing_imports = True
  120. [mypy-jsonschema]
  121. ignore_missing_imports = True
  122. [mypy-signedjson.*]
  123. ignore_missing_imports = True
  124. [mypy-prometheus_client.*]
  125. ignore_missing_imports = True
  126. [mypy-service_identity.*]
  127. ignore_missing_imports = True
  128. [mypy-daemonize]
  129. ignore_missing_imports = True
  130. [mypy-sentry_sdk]
  131. ignore_missing_imports = True
  132. [mypy-PIL.*]
  133. ignore_missing_imports = True
  134. [mypy-lxml]
  135. ignore_missing_imports = True
  136. [mypy-jwt.*]
  137. ignore_missing_imports = True
  138. [mypy-authlib.*]
  139. ignore_missing_imports = True
  140. [mypy-rust_python_jaeger_reporter.*]
  141. ignore_missing_imports = True
  142. [mypy-nacl.*]
  143. ignore_missing_imports = True
  144. [mypy-hiredis]
  145. ignore_missing_imports = True