mypy.ini 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. [mypy]
  2. namespace_packages = True
  3. plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
  4. follow_imports = normal
  5. check_untyped_defs = True
  6. show_error_codes = True
  7. show_traceback = True
  8. mypy_path = stubs
  9. warn_unreachable = True
  10. local_partial_types = True
  11. no_implicit_optional = True
  12. # To find all folders that pass mypy you run:
  13. #
  14. # find synapse/* -type d -not -name __pycache__ -exec bash -c "mypy '{}' > /dev/null" \; -print
  15. files =
  16. scripts-dev/sign_json,
  17. synapse/api,
  18. synapse/appservice,
  19. synapse/config,
  20. synapse/crypto,
  21. synapse/event_auth.py,
  22. synapse/events/builder.py,
  23. synapse/events/spamcheck.py,
  24. synapse/events/third_party_rules.py,
  25. synapse/events/validator.py,
  26. synapse/federation,
  27. synapse/groups,
  28. synapse/handlers,
  29. synapse/http/additional_resource.py,
  30. synapse/http/client.py,
  31. synapse/http/federation/matrix_federation_agent.py,
  32. synapse/http/federation/srv_resolver.py,
  33. synapse/http/federation/well_known_resolver.py,
  34. synapse/http/matrixfederationclient.py,
  35. synapse/http/proxyagent.py,
  36. synapse/http/servlet.py,
  37. synapse/http/server.py,
  38. synapse/http/site.py,
  39. synapse/logging,
  40. synapse/metrics,
  41. synapse/module_api,
  42. synapse/notifier.py,
  43. synapse/push,
  44. synapse/replication,
  45. synapse/rest,
  46. synapse/server.py,
  47. synapse/server_notices,
  48. synapse/spam_checker_api,
  49. synapse/state,
  50. synapse/storage/__init__.py,
  51. synapse/storage/_base.py,
  52. synapse/storage/background_updates.py,
  53. synapse/storage/databases/main/appservice.py,
  54. synapse/storage/databases/main/events.py,
  55. synapse/storage/databases/main/keys.py,
  56. synapse/storage/databases/main/pusher.py,
  57. synapse/storage/databases/main/registration.py,
  58. synapse/storage/databases/main/session.py,
  59. synapse/storage/databases/main/stream.py,
  60. synapse/storage/databases/main/ui_auth.py,
  61. synapse/storage/database.py,
  62. synapse/storage/engines,
  63. synapse/storage/keys.py,
  64. synapse/storage/persist_events.py,
  65. synapse/storage/prepare_database.py,
  66. synapse/storage/purge_events.py,
  67. synapse/storage/push_rule.py,
  68. synapse/storage/relations.py,
  69. synapse/storage/roommember.py,
  70. synapse/storage/state.py,
  71. synapse/storage/types.py,
  72. synapse/storage/util,
  73. synapse/streams,
  74. synapse/types.py,
  75. synapse/util,
  76. synapse/visibility.py,
  77. tests/replication,
  78. tests/test_event_auth.py,
  79. tests/test_utils,
  80. tests/handlers/test_password_providers.py,
  81. tests/handlers/test_room.py,
  82. tests/handlers/test_room_summary.py,
  83. tests/handlers/test_send_email.py,
  84. tests/handlers/test_sync.py,
  85. tests/rest/client/test_login.py,
  86. tests/rest/client/test_auth.py,
  87. tests/util/test_itertools.py,
  88. tests/util/test_stream_change_cache.py
  89. [mypy-synapse.rest.client.*]
  90. disallow_untyped_defs = True
  91. [mypy-synapse.util.batching_queue]
  92. disallow_untyped_defs = True
  93. [mypy-synapse.util.caches.dictionary_cache]
  94. disallow_untyped_defs = True
  95. [mypy-synapse.util.file_consumer]
  96. disallow_untyped_defs = True
  97. [mypy-synapse.util.frozenutils]
  98. disallow_untyped_defs = True
  99. [mypy-synapse.util.hash]
  100. disallow_untyped_defs = True
  101. [mypy-synapse.util.httpresourcetree]
  102. disallow_untyped_defs = True
  103. [mypy-synapse.util.iterutils]
  104. disallow_untyped_defs = True
  105. [mypy-synapse.util.linked_list]
  106. disallow_untyped_defs = True
  107. [mypy-synapse.util.logcontext]
  108. disallow_untyped_defs = True
  109. [mypy-synapse.util.logformatter]
  110. disallow_untyped_defs = True
  111. [mypy-synapse.util.macaroons]
  112. disallow_untyped_defs = True
  113. [mypy-synapse.util.manhole]
  114. disallow_untyped_defs = True
  115. [mypy-synapse.util.module_loader]
  116. disallow_untyped_defs = True
  117. [mypy-synapse.util.msisdn]
  118. disallow_untyped_defs = True
  119. [mypy-synapse.util.ratelimitutils]
  120. disallow_untyped_defs = True
  121. [mypy-synapse.util.retryutils]
  122. disallow_untyped_defs = True
  123. [mypy-synapse.util.rlimit]
  124. disallow_untyped_defs = True
  125. [mypy-synapse.util.stringutils]
  126. disallow_untyped_defs = True
  127. [mypy-synapse.util.templates]
  128. disallow_untyped_defs = True
  129. [mypy-synapse.util.threepids]
  130. disallow_untyped_defs = True
  131. [mypy-synapse.util.wheel_timer]
  132. disallow_untyped_defs = True
  133. [mypy-pymacaroons.*]
  134. ignore_missing_imports = True
  135. [mypy-zope]
  136. ignore_missing_imports = True
  137. [mypy-bcrypt]
  138. ignore_missing_imports = True
  139. [mypy-constantly]
  140. ignore_missing_imports = True
  141. [mypy-twisted.*]
  142. ignore_missing_imports = True
  143. [mypy-treq.*]
  144. ignore_missing_imports = True
  145. [mypy-hyperlink]
  146. ignore_missing_imports = True
  147. [mypy-h11]
  148. ignore_missing_imports = True
  149. [mypy-msgpack]
  150. ignore_missing_imports = True
  151. [mypy-opentracing]
  152. ignore_missing_imports = True
  153. [mypy-OpenSSL.*]
  154. ignore_missing_imports = True
  155. [mypy-netaddr]
  156. ignore_missing_imports = True
  157. [mypy-saml2.*]
  158. ignore_missing_imports = True
  159. [mypy-canonicaljson]
  160. ignore_missing_imports = True
  161. [mypy-jaeger_client.*]
  162. ignore_missing_imports = True
  163. [mypy-jsonschema]
  164. ignore_missing_imports = True
  165. [mypy-signedjson.*]
  166. ignore_missing_imports = True
  167. [mypy-prometheus_client.*]
  168. ignore_missing_imports = True
  169. [mypy-service_identity.*]
  170. ignore_missing_imports = True
  171. [mypy-daemonize]
  172. ignore_missing_imports = True
  173. [mypy-sentry_sdk]
  174. ignore_missing_imports = True
  175. [mypy-PIL.*]
  176. ignore_missing_imports = True
  177. [mypy-lxml]
  178. ignore_missing_imports = True
  179. [mypy-jwt.*]
  180. ignore_missing_imports = True
  181. [mypy-authlib.*]
  182. ignore_missing_imports = True
  183. [mypy-rust_python_jaeger_reporter.*]
  184. ignore_missing_imports = True
  185. [mypy-nacl.*]
  186. ignore_missing_imports = True
  187. [mypy-hiredis]
  188. ignore_missing_imports = True
  189. [mypy-josepy.*]
  190. ignore_missing_imports = True
  191. [mypy-pympler.*]
  192. ignore_missing_imports = True
  193. [mypy-phonenumbers.*]
  194. ignore_missing_imports = True
  195. [mypy-ijson.*]
  196. ignore_missing_imports = True