You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

196 lines
4.4 KiB

  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/async_helpers.py,
  76. synapse/util/caches,
  77. synapse/util/daemonize.py,
  78. synapse/util/hash.py,
  79. synapse/util/iterutils.py,
  80. synapse/util/linked_list.py,
  81. synapse/util/metrics.py,
  82. synapse/util/macaroons.py,
  83. synapse/util/module_loader.py,
  84. synapse/util/msisdn.py,
  85. synapse/util/stringutils.py,
  86. synapse/visibility.py,
  87. tests/replication,
  88. tests/test_event_auth.py,
  89. tests/test_utils,
  90. tests/handlers/test_password_providers.py,
  91. tests/handlers/test_room_summary.py,
  92. tests/handlers/test_send_email.py,
  93. tests/handlers/test_sync.py,
  94. tests/rest/client/test_login.py,
  95. tests/rest/client/test_auth.py,
  96. tests/util/test_itertools.py,
  97. tests/util/test_stream_change_cache.py
  98. [mypy-pymacaroons.*]
  99. ignore_missing_imports = True
  100. [mypy-zope]
  101. ignore_missing_imports = True
  102. [mypy-bcrypt]
  103. ignore_missing_imports = True
  104. [mypy-constantly]
  105. ignore_missing_imports = True
  106. [mypy-twisted.*]
  107. ignore_missing_imports = True
  108. [mypy-treq.*]
  109. ignore_missing_imports = True
  110. [mypy-hyperlink]
  111. ignore_missing_imports = True
  112. [mypy-h11]
  113. ignore_missing_imports = True
  114. [mypy-msgpack]
  115. ignore_missing_imports = True
  116. [mypy-opentracing]
  117. ignore_missing_imports = True
  118. [mypy-OpenSSL.*]
  119. ignore_missing_imports = True
  120. [mypy-netaddr]
  121. ignore_missing_imports = True
  122. [mypy-saml2.*]
  123. ignore_missing_imports = True
  124. [mypy-canonicaljson]
  125. ignore_missing_imports = True
  126. [mypy-jaeger_client.*]
  127. ignore_missing_imports = True
  128. [mypy-jsonschema]
  129. ignore_missing_imports = True
  130. [mypy-signedjson.*]
  131. ignore_missing_imports = True
  132. [mypy-prometheus_client.*]
  133. ignore_missing_imports = True
  134. [mypy-service_identity.*]
  135. ignore_missing_imports = True
  136. [mypy-daemonize]
  137. ignore_missing_imports = True
  138. [mypy-sentry_sdk]
  139. ignore_missing_imports = True
  140. [mypy-PIL.*]
  141. ignore_missing_imports = True
  142. [mypy-lxml]
  143. ignore_missing_imports = True
  144. [mypy-jwt.*]
  145. ignore_missing_imports = True
  146. [mypy-authlib.*]
  147. ignore_missing_imports = True
  148. [mypy-rust_python_jaeger_reporter.*]
  149. ignore_missing_imports = True
  150. [mypy-nacl.*]
  151. ignore_missing_imports = True
  152. [mypy-hiredis]
  153. ignore_missing_imports = True
  154. [mypy-josepy.*]
  155. ignore_missing_imports = True
  156. [mypy-pympler.*]
  157. ignore_missing_imports = True
  158. [mypy-phonenumbers.*]
  159. ignore_missing_imports = True
  160. [mypy-ijson.*]
  161. ignore_missing_imports = True