mypy.ini 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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/crypto,
  19. synapse/event_auth.py,
  20. synapse/events/builder.py,
  21. synapse/events/validator.py,
  22. synapse/events/spamcheck.py,
  23. synapse/federation,
  24. synapse/handlers/_base.py,
  25. synapse/handlers/account_data.py,
  26. synapse/handlers/account_validity.py,
  27. synapse/handlers/admin.py,
  28. synapse/handlers/appservice.py,
  29. synapse/handlers/auth.py,
  30. synapse/handlers/cas_handler.py,
  31. synapse/handlers/deactivate_account.py,
  32. synapse/handlers/device.py,
  33. synapse/handlers/devicemessage.py,
  34. synapse/handlers/directory.py,
  35. synapse/handlers/events.py,
  36. synapse/handlers/federation.py,
  37. synapse/handlers/identity.py,
  38. synapse/handlers/initial_sync.py,
  39. synapse/handlers/message.py,
  40. synapse/handlers/oidc_handler.py,
  41. synapse/handlers/pagination.py,
  42. synapse/handlers/password_policy.py,
  43. synapse/handlers/presence.py,
  44. synapse/handlers/profile.py,
  45. synapse/handlers/read_marker.py,
  46. synapse/handlers/receipts.py,
  47. synapse/handlers/register.py,
  48. synapse/handlers/room.py,
  49. synapse/handlers/room_list.py,
  50. synapse/handlers/room_member.py,
  51. synapse/handlers/room_member_worker.py,
  52. synapse/handlers/saml_handler.py,
  53. synapse/handlers/sso.py,
  54. synapse/handlers/sync.py,
  55. synapse/handlers/user_directory.py,
  56. synapse/handlers/ui_auth,
  57. synapse/http/client.py,
  58. synapse/http/federation/matrix_federation_agent.py,
  59. synapse/http/federation/well_known_resolver.py,
  60. synapse/http/matrixfederationclient.py,
  61. synapse/http/server.py,
  62. synapse/http/site.py,
  63. synapse/logging,
  64. synapse/metrics,
  65. synapse/module_api,
  66. synapse/notifier.py,
  67. synapse/push,
  68. synapse/replication,
  69. synapse/rest,
  70. synapse/server.py,
  71. synapse/server_notices,
  72. synapse/spam_checker_api,
  73. synapse/state,
  74. synapse/storage/__init__.py,
  75. synapse/storage/_base.py,
  76. synapse/storage/background_updates.py,
  77. synapse/storage/databases/main/appservice.py,
  78. synapse/storage/databases/main/events.py,
  79. synapse/storage/databases/main/keys.py,
  80. synapse/storage/databases/main/pusher.py,
  81. synapse/storage/databases/main/registration.py,
  82. synapse/storage/databases/main/stream.py,
  83. synapse/storage/databases/main/ui_auth.py,
  84. synapse/storage/database.py,
  85. synapse/storage/engines,
  86. synapse/storage/keys.py,
  87. synapse/storage/persist_events.py,
  88. synapse/storage/prepare_database.py,
  89. synapse/storage/purge_events.py,
  90. synapse/storage/push_rule.py,
  91. synapse/storage/relations.py,
  92. synapse/storage/roommember.py,
  93. synapse/storage/state.py,
  94. synapse/storage/types.py,
  95. synapse/storage/util,
  96. synapse/streams,
  97. synapse/types.py,
  98. synapse/util/async_helpers.py,
  99. synapse/util/caches,
  100. synapse/util/metrics.py,
  101. synapse/util/stringutils.py,
  102. tests/replication,
  103. tests/test_utils,
  104. tests/handlers/test_password_providers.py,
  105. tests/rest/client/v1/test_login.py,
  106. tests/rest/client/v2_alpha/test_auth.py,
  107. tests/util/test_stream_change_cache.py
  108. [mypy-pymacaroons.*]
  109. ignore_missing_imports = True
  110. [mypy-zope]
  111. ignore_missing_imports = True
  112. [mypy-bcrypt]
  113. ignore_missing_imports = True
  114. [mypy-constantly]
  115. ignore_missing_imports = True
  116. [mypy-twisted.*]
  117. ignore_missing_imports = True
  118. [mypy-treq.*]
  119. ignore_missing_imports = True
  120. [mypy-hyperlink]
  121. ignore_missing_imports = True
  122. [mypy-h11]
  123. ignore_missing_imports = True
  124. [mypy-msgpack]
  125. ignore_missing_imports = True
  126. [mypy-opentracing]
  127. ignore_missing_imports = True
  128. [mypy-OpenSSL.*]
  129. ignore_missing_imports = True
  130. [mypy-netaddr]
  131. ignore_missing_imports = True
  132. [mypy-saml2.*]
  133. ignore_missing_imports = True
  134. [mypy-unpaddedbase64]
  135. ignore_missing_imports = True
  136. [mypy-canonicaljson]
  137. ignore_missing_imports = True
  138. [mypy-jaeger_client]
  139. ignore_missing_imports = True
  140. [mypy-jsonschema]
  141. ignore_missing_imports = True
  142. [mypy-signedjson.*]
  143. ignore_missing_imports = True
  144. [mypy-prometheus_client.*]
  145. ignore_missing_imports = True
  146. [mypy-service_identity.*]
  147. ignore_missing_imports = True
  148. [mypy-daemonize]
  149. ignore_missing_imports = True
  150. [mypy-sentry_sdk]
  151. ignore_missing_imports = True
  152. [mypy-PIL.*]
  153. ignore_missing_imports = True
  154. [mypy-lxml]
  155. ignore_missing_imports = True
  156. [mypy-jwt.*]
  157. ignore_missing_imports = True
  158. [mypy-authlib.*]
  159. ignore_missing_imports = True
  160. [mypy-rust_python_jaeger_reporter.*]
  161. ignore_missing_imports = True
  162. [mypy-nacl.*]
  163. ignore_missing_imports = True
  164. [mypy-hiredis]
  165. ignore_missing_imports = True