1
0

mypy.ini 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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/client.py,
  30. synapse/http/federation/matrix_federation_agent.py,
  31. synapse/http/federation/well_known_resolver.py,
  32. synapse/http/matrixfederationclient.py,
  33. synapse/http/server.py,
  34. synapse/http/site.py,
  35. synapse/logging,
  36. synapse/metrics,
  37. synapse/module_api,
  38. synapse/notifier.py,
  39. synapse/push,
  40. synapse/replication,
  41. synapse/rest,
  42. synapse/server.py,
  43. synapse/server_notices,
  44. synapse/spam_checker_api,
  45. synapse/state,
  46. synapse/storage/__init__.py,
  47. synapse/storage/_base.py,
  48. synapse/storage/background_updates.py,
  49. synapse/storage/databases/main/appservice.py,
  50. synapse/storage/databases/main/events.py,
  51. synapse/storage/databases/main/keys.py,
  52. synapse/storage/databases/main/pusher.py,
  53. synapse/storage/databases/main/registration.py,
  54. synapse/storage/databases/main/stream.py,
  55. synapse/storage/databases/main/ui_auth.py,
  56. synapse/storage/database.py,
  57. synapse/storage/engines,
  58. synapse/storage/keys.py,
  59. synapse/storage/persist_events.py,
  60. synapse/storage/prepare_database.py,
  61. synapse/storage/purge_events.py,
  62. synapse/storage/push_rule.py,
  63. synapse/storage/relations.py,
  64. synapse/storage/roommember.py,
  65. synapse/storage/state.py,
  66. synapse/storage/types.py,
  67. synapse/storage/util,
  68. synapse/streams,
  69. synapse/types.py,
  70. synapse/util/async_helpers.py,
  71. synapse/util/caches,
  72. synapse/util/metrics.py,
  73. synapse/util/macaroons.py,
  74. synapse/util/stringutils.py,
  75. synapse/visibility.py,
  76. tests/replication,
  77. tests/test_utils,
  78. tests/handlers/test_password_providers.py,
  79. tests/rest/client/v1/test_login.py,
  80. tests/rest/client/v2_alpha/test_auth.py,
  81. tests/util/test_stream_change_cache.py
  82. [mypy-pymacaroons.*]
  83. ignore_missing_imports = True
  84. [mypy-zope]
  85. ignore_missing_imports = True
  86. [mypy-bcrypt]
  87. ignore_missing_imports = True
  88. [mypy-constantly]
  89. ignore_missing_imports = True
  90. [mypy-twisted.*]
  91. ignore_missing_imports = True
  92. [mypy-treq.*]
  93. ignore_missing_imports = True
  94. [mypy-hyperlink]
  95. ignore_missing_imports = True
  96. [mypy-h11]
  97. ignore_missing_imports = True
  98. [mypy-msgpack]
  99. ignore_missing_imports = True
  100. [mypy-opentracing]
  101. ignore_missing_imports = True
  102. [mypy-OpenSSL.*]
  103. ignore_missing_imports = True
  104. [mypy-netaddr]
  105. ignore_missing_imports = True
  106. [mypy-saml2.*]
  107. ignore_missing_imports = True
  108. [mypy-canonicaljson]
  109. ignore_missing_imports = True
  110. [mypy-jaeger_client]
  111. ignore_missing_imports = True
  112. [mypy-jsonschema]
  113. ignore_missing_imports = True
  114. [mypy-signedjson.*]
  115. ignore_missing_imports = True
  116. [mypy-prometheus_client.*]
  117. ignore_missing_imports = True
  118. [mypy-service_identity.*]
  119. ignore_missing_imports = True
  120. [mypy-daemonize]
  121. ignore_missing_imports = True
  122. [mypy-sentry_sdk]
  123. ignore_missing_imports = True
  124. [mypy-PIL.*]
  125. ignore_missing_imports = True
  126. [mypy-lxml]
  127. ignore_missing_imports = True
  128. [mypy-jwt.*]
  129. ignore_missing_imports = True
  130. [mypy-authlib.*]
  131. ignore_missing_imports = True
  132. [mypy-rust_python_jaeger_reporter.*]
  133. ignore_missing_imports = True
  134. [mypy-nacl.*]
  135. ignore_missing_imports = True
  136. [mypy-hiredis]
  137. ignore_missing_imports = True
  138. [mypy-josepy.*]
  139. ignore_missing_imports = True
  140. [mypy-txacme.*]
  141. ignore_missing_imports = True
  142. [mypy-pympler.*]
  143. ignore_missing_imports = True