Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

323 righe
7.3 KiB

  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/presence_router.py,
  24. synapse/events/snapshot.py,
  25. synapse/events/spamcheck.py,
  26. synapse/events/third_party_rules.py,
  27. synapse/events/utils.py,
  28. synapse/events/validator.py,
  29. synapse/federation,
  30. synapse/groups,
  31. synapse/handlers,
  32. synapse/http/additional_resource.py,
  33. synapse/http/client.py,
  34. synapse/http/federation/matrix_federation_agent.py,
  35. synapse/http/federation/srv_resolver.py,
  36. synapse/http/federation/well_known_resolver.py,
  37. synapse/http/matrixfederationclient.py,
  38. synapse/http/proxyagent.py,
  39. synapse/http/servlet.py,
  40. synapse/http/server.py,
  41. synapse/http/site.py,
  42. synapse/logging,
  43. synapse/metrics,
  44. synapse/module_api,
  45. synapse/notifier.py,
  46. synapse/push,
  47. synapse/replication,
  48. synapse/rest,
  49. synapse/server.py,
  50. synapse/server_notices,
  51. synapse/spam_checker_api,
  52. synapse/state,
  53. synapse/storage/__init__.py,
  54. synapse/storage/_base.py,
  55. synapse/storage/background_updates.py,
  56. synapse/storage/databases/main/appservice.py,
  57. synapse/storage/databases/main/client_ips.py,
  58. synapse/storage/databases/main/events.py,
  59. synapse/storage/databases/main/keys.py,
  60. synapse/storage/databases/main/pusher.py,
  61. synapse/storage/databases/main/registration.py,
  62. synapse/storage/databases/main/session.py,
  63. synapse/storage/databases/main/stream.py,
  64. synapse/storage/databases/main/ui_auth.py,
  65. synapse/storage/databases/state,
  66. synapse/storage/database.py,
  67. synapse/storage/engines,
  68. synapse/storage/keys.py,
  69. synapse/storage/persist_events.py,
  70. synapse/storage/prepare_database.py,
  71. synapse/storage/purge_events.py,
  72. synapse/storage/push_rule.py,
  73. synapse/storage/relations.py,
  74. synapse/storage/roommember.py,
  75. synapse/storage/state.py,
  76. synapse/storage/types.py,
  77. synapse/storage/util,
  78. synapse/streams,
  79. synapse/types.py,
  80. synapse/util,
  81. synapse/visibility.py,
  82. tests/replication,
  83. tests/test_event_auth.py,
  84. tests/test_utils,
  85. tests/handlers/test_password_providers.py,
  86. tests/handlers/test_room.py,
  87. tests/handlers/test_room_summary.py,
  88. tests/handlers/test_send_email.py,
  89. tests/handlers/test_sync.py,
  90. tests/handlers/test_user_directory.py,
  91. tests/rest/client/test_login.py,
  92. tests/rest/client/test_auth.py,
  93. tests/rest/client/test_relations.py,
  94. tests/rest/media/v1/test_filepath.py,
  95. tests/rest/media/v1/test_oembed.py,
  96. tests/storage/test_state.py,
  97. tests/storage/test_user_directory.py,
  98. tests/util/test_itertools.py,
  99. tests/util/test_stream_change_cache.py
  100. [mypy-synapse.api.*]
  101. disallow_untyped_defs = True
  102. [mypy-synapse.crypto.*]
  103. disallow_untyped_defs = True
  104. [mypy-synapse.events.*]
  105. disallow_untyped_defs = True
  106. [mypy-synapse.handlers.*]
  107. disallow_untyped_defs = True
  108. [mypy-synapse.push.*]
  109. disallow_untyped_defs = True
  110. [mypy-synapse.rest.*]
  111. disallow_untyped_defs = True
  112. [mypy-synapse.server_notices.*]
  113. disallow_untyped_defs = True
  114. [mypy-synapse.state.*]
  115. disallow_untyped_defs = True
  116. [mypy-synapse.storage.databases.main.client_ips]
  117. disallow_untyped_defs = True
  118. [mypy-synapse.storage.util.*]
  119. disallow_untyped_defs = True
  120. [mypy-synapse.streams.*]
  121. disallow_untyped_defs = True
  122. [mypy-synapse.util.batching_queue]
  123. disallow_untyped_defs = True
  124. [mypy-synapse.util.caches.cached_call]
  125. disallow_untyped_defs = True
  126. [mypy-synapse.util.caches.dictionary_cache]
  127. disallow_untyped_defs = True
  128. [mypy-synapse.util.caches.lrucache]
  129. disallow_untyped_defs = True
  130. [mypy-synapse.util.caches.response_cache]
  131. disallow_untyped_defs = True
  132. [mypy-synapse.util.caches.stream_change_cache]
  133. disallow_untyped_defs = True
  134. [mypy-synapse.util.caches.ttl_cache]
  135. disallow_untyped_defs = True
  136. [mypy-synapse.util.daemonize]
  137. disallow_untyped_defs = True
  138. [mypy-synapse.util.file_consumer]
  139. disallow_untyped_defs = True
  140. [mypy-synapse.util.frozenutils]
  141. disallow_untyped_defs = True
  142. [mypy-synapse.util.hash]
  143. disallow_untyped_defs = True
  144. [mypy-synapse.util.httpresourcetree]
  145. disallow_untyped_defs = True
  146. [mypy-synapse.util.iterutils]
  147. disallow_untyped_defs = True
  148. [mypy-synapse.util.linked_list]
  149. disallow_untyped_defs = True
  150. [mypy-synapse.util.logcontext]
  151. disallow_untyped_defs = True
  152. [mypy-synapse.util.logformatter]
  153. disallow_untyped_defs = True
  154. [mypy-synapse.util.macaroons]
  155. disallow_untyped_defs = True
  156. [mypy-synapse.util.manhole]
  157. disallow_untyped_defs = True
  158. [mypy-synapse.util.module_loader]
  159. disallow_untyped_defs = True
  160. [mypy-synapse.util.msisdn]
  161. disallow_untyped_defs = True
  162. [mypy-synapse.util.patch_inline_callbacks]
  163. disallow_untyped_defs = True
  164. [mypy-synapse.util.ratelimitutils]
  165. disallow_untyped_defs = True
  166. [mypy-synapse.util.retryutils]
  167. disallow_untyped_defs = True
  168. [mypy-synapse.util.rlimit]
  169. disallow_untyped_defs = True
  170. [mypy-synapse.util.stringutils]
  171. disallow_untyped_defs = True
  172. [mypy-synapse.util.templates]
  173. disallow_untyped_defs = True
  174. [mypy-synapse.util.threepids]
  175. disallow_untyped_defs = True
  176. [mypy-synapse.util.wheel_timer]
  177. disallow_untyped_defs = True
  178. [mypy-synapse.util.versionstring]
  179. disallow_untyped_defs = True
  180. [mypy-tests.handlers.test_user_directory]
  181. disallow_untyped_defs = True
  182. [mypy-tests.storage.test_user_directory]
  183. disallow_untyped_defs = True
  184. ;; Dependencies without annotations
  185. ;; Before ignoring a module, check to see if type stubs are available.
  186. ;; The `typeshed` project maintains stubs here:
  187. ;; https://github.com/python/typeshed/tree/master/stubs
  188. ;; and for each package `foo` there's a corresponding `types-foo` package on PyPI,
  189. ;; which we can pull in as a dev dependency by adding to `setup.py`'s
  190. ;; `CONDITIONAL_REQUIREMENTS["mypy"]` list.
  191. [mypy-authlib.*]
  192. ignore_missing_imports = True
  193. [mypy-bcrypt]
  194. ignore_missing_imports = True
  195. [mypy-canonicaljson]
  196. ignore_missing_imports = True
  197. [mypy-constantly]
  198. ignore_missing_imports = True
  199. [mypy-daemonize]
  200. ignore_missing_imports = True
  201. [mypy-h11]
  202. ignore_missing_imports = True
  203. [mypy-hiredis]
  204. ignore_missing_imports = True
  205. [mypy-hyperlink]
  206. ignore_missing_imports = True
  207. [mypy-ijson.*]
  208. ignore_missing_imports = True
  209. [mypy-jaeger_client.*]
  210. ignore_missing_imports = True
  211. [mypy-josepy.*]
  212. ignore_missing_imports = True
  213. [mypy-jwt.*]
  214. ignore_missing_imports = True
  215. [mypy-lxml]
  216. ignore_missing_imports = True
  217. [mypy-msgpack]
  218. ignore_missing_imports = True
  219. [mypy-nacl.*]
  220. ignore_missing_imports = True
  221. [mypy-netaddr]
  222. ignore_missing_imports = True
  223. [mypy-opentracing]
  224. ignore_missing_imports = True
  225. [mypy-phonenumbers.*]
  226. ignore_missing_imports = True
  227. [mypy-prometheus_client.*]
  228. ignore_missing_imports = True
  229. [mypy-pymacaroons.*]
  230. ignore_missing_imports = True
  231. [mypy-pympler.*]
  232. ignore_missing_imports = True
  233. [mypy-rust_python_jaeger_reporter.*]
  234. ignore_missing_imports = True
  235. [mypy-saml2.*]
  236. ignore_missing_imports = True
  237. [mypy-sentry_sdk]
  238. ignore_missing_imports = True
  239. [mypy-service_identity.*]
  240. ignore_missing_imports = True
  241. [mypy-signedjson.*]
  242. ignore_missing_imports = True
  243. [mypy-treq.*]
  244. ignore_missing_imports = True
  245. [mypy-twisted.*]
  246. ignore_missing_imports = True
  247. [mypy-zope]
  248. ignore_missing_imports = True