mypy.ini 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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/stringutils.py,
  71. tests/replication,
  72. tests/test_utils,
  73. tests/handlers/test_password_providers.py,
  74. tests/rest/client/v1/test_login.py,
  75. tests/rest/client/v2_alpha/test_auth.py,
  76. tests/util/test_stream_change_cache.py
  77. [mypy-pymacaroons.*]
  78. ignore_missing_imports = True
  79. [mypy-zope]
  80. ignore_missing_imports = True
  81. [mypy-bcrypt]
  82. ignore_missing_imports = True
  83. [mypy-constantly]
  84. ignore_missing_imports = True
  85. [mypy-twisted.*]
  86. ignore_missing_imports = True
  87. [mypy-treq.*]
  88. ignore_missing_imports = True
  89. [mypy-hyperlink]
  90. ignore_missing_imports = True
  91. [mypy-h11]
  92. ignore_missing_imports = True
  93. [mypy-msgpack]
  94. ignore_missing_imports = True
  95. [mypy-opentracing]
  96. ignore_missing_imports = True
  97. [mypy-OpenSSL.*]
  98. ignore_missing_imports = True
  99. [mypy-netaddr]
  100. ignore_missing_imports = True
  101. [mypy-saml2.*]
  102. ignore_missing_imports = True
  103. [mypy-unpaddedbase64]
  104. ignore_missing_imports = True
  105. [mypy-canonicaljson]
  106. ignore_missing_imports = True
  107. [mypy-jaeger_client]
  108. ignore_missing_imports = True
  109. [mypy-jsonschema]
  110. ignore_missing_imports = True
  111. [mypy-signedjson.*]
  112. ignore_missing_imports = True
  113. [mypy-prometheus_client.*]
  114. ignore_missing_imports = True
  115. [mypy-service_identity.*]
  116. ignore_missing_imports = True
  117. [mypy-daemonize]
  118. ignore_missing_imports = True
  119. [mypy-sentry_sdk]
  120. ignore_missing_imports = True
  121. [mypy-PIL.*]
  122. ignore_missing_imports = True
  123. [mypy-lxml]
  124. ignore_missing_imports = True
  125. [mypy-jwt.*]
  126. ignore_missing_imports = True
  127. [mypy-authlib.*]
  128. ignore_missing_imports = True
  129. [mypy-rust_python_jaeger_reporter.*]
  130. ignore_missing_imports = True
  131. [mypy-nacl.*]
  132. ignore_missing_imports = True
  133. [mypy-hiredis]
  134. ignore_missing_imports = True
  135. [mypy-josepy.*]
  136. ignore_missing_imports = True
  137. [mypy-txacme.*]
  138. ignore_missing_imports = True