mypy.ini 3.7 KB

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