mypy.ini 3.7 KB

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