mypy.ini 4.3 KB

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