repid 2.2.0a1__tar.gz → 2.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. {repid-2.2.0a1 → repid-2.2.2}/.devcontainer/devcontainer.json +3 -4
  2. repid-2.2.2/.github/dependabot.yml +37 -0
  3. repid-2.2.2/.github/workflows/actions.lock +96 -0
  4. {repid-2.2.0a1 → repid-2.2.2}/.github/workflows/codeql.yml +6 -4
  5. {repid-2.2.0a1 → repid-2.2.2}/.github/workflows/dependency-review.yml +5 -3
  6. repid-2.2.2/.github/workflows/docs.yml +89 -0
  7. repid-2.2.2/.github/workflows/prek.yml +32 -0
  8. repid-2.2.2/.github/workflows/release.yaml +53 -0
  9. repid-2.2.2/.github/workflows/tests.yaml +183 -0
  10. repid-2.2.2/.github/workflows/typecheck.yml +35 -0
  11. repid-2.2.2/.github/workflows/workflow-lint.yml +41 -0
  12. {repid-2.2.0a1 → repid-2.2.2}/.gitignore +1 -0
  13. {repid-2.2.0a1 → repid-2.2.2}/.pre-commit-config.yaml +6 -12
  14. {repid-2.2.0a1 → repid-2.2.2}/Makefile +2 -2
  15. {repid-2.2.0a1 → repid-2.2.2}/PKG-INFO +7 -7
  16. {repid-2.2.0a1 → repid-2.2.2}/README.md +1 -1
  17. {repid-2.2.0a1 → repid-2.2.2}/SECURITY.md +9 -0
  18. repid-2.2.2/docs/advanced_user_guide/your_own_brokers.md +128 -0
  19. {repid-2.2.0a1 → repid-2.2.2}/docs/advanced_user_guide/your_own_converter.md +6 -8
  20. {repid-2.2.0a1 → repid-2.2.2}/docs/contributing.md +7 -12
  21. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/middlewares.md +2 -2
  22. {repid-2.2.0a1 → repid-2.2.2}/docs/getting_started/quickstart.md +18 -0
  23. {repid-2.2.0a1 → repid-2.2.2}/docs/index.md +1 -1
  24. {repid-2.2.0a1 → repid-2.2.2}/docs/integrations/fastapi_and_pydantic.md +1 -1
  25. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/routers.md +0 -16
  26. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/dependency_injection.md +4 -4
  27. repid-2.2.2/docs/user_guide/workers/concurrency.md +31 -0
  28. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/workers/index.md +1 -1
  29. {repid-2.2.0a1 → repid-2.2.2}/pyproject.toml +43 -45
  30. {repid-2.2.0a1 → repid-2.2.2}/repid/__init__.py +0 -12
  31. repid-2.2.2/repid/_runner.py +410 -0
  32. repid-2.2.2/repid/_utils/_typing.py +8 -0
  33. {repid-2.2.0a1 → repid-2.2.2}/repid/_utils/asyncify_.py +4 -2
  34. {repid-2.2.0a1 → repid-2.2.2}/repid/_utils/json_encoder.py +3 -1
  35. {repid-2.2.0a1 → repid-2.2.2}/repid/_worker.py +15 -46
  36. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/generator.py +4 -4
  37. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/asyncapi.py +1 -7
  38. repid-2.2.2/repid/asyncapi/models/common/correlation_id.py +6 -0
  39. repid-2.2.2/repid/asyncapi/models/common/external_docs.py +8 -0
  40. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/common/message.py +1 -7
  41. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/common/tag.py +1 -7
  42. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/info.py +1 -7
  43. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/operations.py +1 -7
  44. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/servers.py +1 -7
  45. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi_server.py +8 -3
  46. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/__init__.py +0 -2
  47. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/abc.py +7 -23
  48. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/_decode.py +2 -2
  49. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/_encode.py +7 -12
  50. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/endpoints.py +8 -6
  51. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/outcomes.py +4 -1
  52. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/performatives.py +6 -6
  53. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/message_broker.py +4 -19
  54. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/connection.py +2 -4
  55. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/links.py +42 -15
  56. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/session.py +20 -4
  57. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/states.py +2 -0
  58. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/transport.py +6 -7
  59. repid-2.2.2/repid/connections/amqp/subscriber.py +173 -0
  60. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/in_memory/message_broker.py +64 -107
  61. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/kafka/message.py +0 -2
  62. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/kafka/message_broker.py +7 -16
  63. repid-2.2.2/repid/connections/kafka/subscriber.py +168 -0
  64. repid-2.2.2/repid/connections/nats/message_broker.py +497 -0
  65. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/__init__.py +1 -0
  66. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/message_broker.py +35 -23
  67. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/__init__.py +1 -0
  68. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/_helpers.py +0 -2
  69. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/client.py +6 -1
  70. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/control_batcher.py +38 -41
  71. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/proto.py +1 -1
  72. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/resilience.py +102 -39
  73. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/subscriber.py +78 -193
  74. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/redis/message_broker.py +315 -295
  75. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/sqs/message.py +2 -4
  76. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/sqs/message_broker.py +5 -30
  77. repid-2.2.2/repid/connections/sqs/subscriber.py +333 -0
  78. {repid-2.2.0a1 → repid-2.2.2}/repid/converter.py +27 -28
  79. {repid-2.2.0a1 → repid-2.2.2}/repid/data/actor.py +11 -12
  80. {repid-2.2.0a1 → repid-2.2.2}/repid/data/channel.py +0 -15
  81. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/_utils.py +45 -0
  82. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/depends.py +5 -16
  83. {repid-2.2.0a1 → repid-2.2.2}/repid/health_check_server.py +6 -1
  84. {repid-2.2.0a1 → repid-2.2.2}/repid/main.py +6 -66
  85. {repid-2.2.0a1 → repid-2.2.2}/repid/middlewares.py +8 -12
  86. {repid-2.2.0a1 → repid-2.2.2}/repid/router.py +26 -98
  87. {repid-2.2.0a1 → repid-2.2.2}/repid/test_client.py +4 -11
  88. repid-2.2.2/tests/integration/asyncapi/package-lock.json +18002 -0
  89. repid-2.2.2/tests/integration/asyncapi/package.json +7 -0
  90. repid-2.2.2/tests/integration/brokers.py +398 -0
  91. repid-2.2.2/tests/integration/conftest.py +126 -0
  92. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_asyncapi_compatibility.py +53 -32
  93. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_default_flow.py +4 -10
  94. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_kafka_specific.py +32 -37
  95. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_nats_specific.py +36 -153
  96. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_rabbitmq_specific.py +15 -33
  97. repid-2.2.2/tests/integration/test_redis_specific.py +307 -0
  98. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_sqs_specific.py +236 -228
  99. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/test_worker.py +8 -21
  100. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/conftest.py +1 -1
  101. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_amqp_transport.py +110 -105
  102. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_connection.py +6 -64
  103. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_encoding_decoding.py +28 -36
  104. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_event_emitter.py +1 -8
  105. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_frame_buffer.py +3 -11
  106. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_links.py +50 -85
  107. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_managed.py +2 -13
  108. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_managed_pools.py +1 -24
  109. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_message.py +0 -6
  110. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_message_broker.py +27 -557
  111. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_metrics.py +0 -2
  112. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_reconnect.py +0 -2
  113. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_session.py +97 -52
  114. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_state_machine.py +13 -28
  115. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_uamqp_types.py +2 -26
  116. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/conftest.py +2 -2
  117. repid-2.2.2/tests/unit/in_memory/test_message_broker.py +471 -0
  118. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/in_memory/test_utils.py +1 -1
  119. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_channel.py +0 -2
  120. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_client.py +54 -5
  121. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_control_batcher.py +58 -10
  122. repid-2.2.2/tests/unit/pubsub/protocol/test_resilience.py +464 -0
  123. repid-2.2.2/tests/unit/pubsub/protocol/test_subscriber.py +708 -0
  124. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_subscriber_execution.py +15 -29
  125. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/test_helpers.py +0 -18
  126. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/test_message_broker.py +41 -12
  127. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/redis/test_message_broker.py +823 -1095
  128. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/redis/test_redis_keep_alive.py +11 -2
  129. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/sqs/test_message.py +1 -1
  130. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_asyncapi_generator.py +114 -13
  131. repid-2.2.2/tests/unit/test_channel.py +19 -0
  132. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_converter.py +73 -50
  133. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_dependencies.py +178 -28
  134. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_health_check_server.py +4 -4
  135. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_main.py +6 -6
  136. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_middleware.py +17 -17
  137. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_router.py +12 -152
  138. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_runner.py +171 -220
  139. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_runner_manual_explicit.py +1 -6
  140. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_test_client.py +2 -14
  141. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_worker.py +31 -154
  142. repid-2.2.2/uv.lock +2461 -0
  143. repid-2.2.2/zensical.toml +124 -0
  144. repid-2.2.0a1/.github/dependabot.yml +0 -20
  145. repid-2.2.0a1/.github/workflows/docs.yml +0 -33
  146. repid-2.2.0a1/.github/workflows/mypy.yml +0 -27
  147. repid-2.2.0a1/.github/workflows/release.yaml +0 -29
  148. repid-2.2.0a1/.github/workflows/tests.yaml +0 -138
  149. repid-2.2.0a1/docs/advanced_user_guide/your_own_brokers.md +0 -412
  150. repid-2.2.0a1/docs/user_guide/workers/concurrency.md +0 -430
  151. repid-2.2.0a1/mkdocs.yml +0 -132
  152. repid-2.2.0a1/repid/_runner.py +0 -550
  153. repid-2.2.0a1/repid/admission.py +0 -879
  154. repid-2.2.0a1/repid/asyncapi/models/common/correlation_id.py +0 -12
  155. repid-2.2.0a1/repid/asyncapi/models/common/external_docs.py +0 -14
  156. repid-2.2.0a1/repid/connections/_subscriber.py +0 -292
  157. repid-2.2.0a1/repid/connections/amqp/subscriber.py +0 -278
  158. repid-2.2.0a1/repid/connections/kafka/subscriber.py +0 -181
  159. repid-2.2.0a1/repid/connections/nats/message_broker.py +0 -820
  160. repid-2.2.0a1/repid/connections/sqs/subscriber.py +0 -438
  161. repid-2.2.0a1/repid/limits.py +0 -208
  162. repid-2.2.0a1/tests/integration/conftest.py +0 -462
  163. repid-2.2.0a1/tests/unit/in_memory/test_message_broker.py +0 -928
  164. repid-2.2.0a1/tests/unit/pubsub/protocol/test_helpers_internal.py +0 -33
  165. repid-2.2.0a1/tests/unit/pubsub/protocol/test_resilience.py +0 -325
  166. repid-2.2.0a1/tests/unit/pubsub/protocol/test_subscriber.py +0 -1477
  167. repid-2.2.0a1/tests/unit/sqs/__init__.py +0 -0
  168. repid-2.2.0a1/tests/unit/sqs/test_subscriber.py +0 -371
  169. repid-2.2.0a1/tests/unit/test_admission_control_adapters.py +0 -1700
  170. repid-2.2.0a1/tests/unit/test_admission_lifecycle.py +0 -425
  171. repid-2.2.0a1/tests/unit/test_channel.py +0 -59
  172. repid-2.2.0a1/tests/unit/test_limits.py +0 -401
  173. repid-2.2.0a1/tests/unit/test_prefetched_keepalive_regressions.py +0 -782
  174. repid-2.2.0a1/tests/unit/test_runner_admission_control.py +0 -1317
  175. repid-2.2.0a1/tests/unit/test_worker_limits_public.py +0 -625
  176. repid-2.2.0a1/uv.lock +0 -2921
  177. {repid-2.2.0a1 → repid-2.2.2}/.github/CODE_OF_CONDUCT.md +0 -0
  178. {repid-2.2.0a1 → repid-2.2.2}/.github/FUNDING.yml +0 -0
  179. {repid-2.2.0a1 → repid-2.2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  180. {repid-2.2.0a1 → repid-2.2.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  181. {repid-2.2.0a1 → repid-2.2.2}/.github/ISSUE_TEMPLATE/other.md +0 -0
  182. {repid-2.2.0a1 → repid-2.2.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  183. {repid-2.2.0a1 → repid-2.2.2}/LICENSE +0 -0
  184. {repid-2.2.0a1 → repid-2.2.2}/docs/advanced_user_guide/your_own_serializer.md +0 -0
  185. {repid-2.2.0a1 → repid-2.2.2}/docs/benchmarks.md +0 -0
  186. {repid-2.2.0a1 → repid-2.2.2}/docs/benchmarks_img/.gitignore +0 -0
  187. {repid-2.2.0a1 → repid-2.2.2}/docs/benchmarks_img/chart.svg +0 -0
  188. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/chaining_jobs.md +0 -0
  189. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/large_payloads.md +0 -0
  190. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/opentelemetry_middleware.md +0 -0
  191. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/rabbitmq_retries.md +0 -0
  192. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/sentry_middleware.md +0 -0
  193. {repid-2.2.0a1 → repid-2.2.2}/docs/cookbook/testing.md +0 -0
  194. {repid-2.2.0a1 → repid-2.2.2}/docs/features.md +0 -0
  195. {repid-2.2.0a1 → repid-2.2.2}/docs/getting_started/glossary.md +0 -0
  196. {repid-2.2.0a1 → repid-2.2.2}/docs/getting_started/supported_brokers.md +0 -0
  197. {repid-2.2.0a1 → repid-2.2.2}/docs/integrations/asyncapi.md +0 -0
  198. {repid-2.2.0a1 → repid-2.2.2}/docs/overrides/partials/integrations/analytics/custom.html +0 -0
  199. {repid-2.2.0a1 → repid-2.2.2}/docs/playground.md +0 -0
  200. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/confirmation_and_errors.md +0 -0
  201. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/execution.md +0 -0
  202. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/index.md +0 -0
  203. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/parsing.md +0 -0
  204. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/actors/routing.md +0 -0
  205. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/message_registry.md +0 -0
  206. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/messages.md +0 -0
  207. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/raw_message_and_eager_response.md +0 -0
  208. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/server_registry.md +0 -0
  209. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/server_specific_parameters.md +0 -0
  210. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/workers/built_in_servers.md +0 -0
  211. {repid-2.2.0a1 → repid-2.2.2}/docs/user_guide/workers/lifecycle.md +0 -0
  212. {repid-2.2.0a1 → repid-2.2.2}/repid/_utils/__init__.py +0 -0
  213. {repid-2.2.0a1 → repid-2.2.2}/repid/_utils/is_installed.py +0 -0
  214. {repid-2.2.0a1 → repid-2.2.2}/repid/_utils/not_set.py +0 -0
  215. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/__init__.py +0 -0
  216. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/__init__.py +0 -0
  217. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/channels.py +0 -0
  218. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/common/__init__.py +0 -0
  219. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/common/bindings.py +0 -0
  220. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/common/reference.py +0 -0
  221. {repid-2.2.0a1 → repid-2.2.2}/repid/asyncapi/models/components.py +0 -0
  222. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/__init__.py +0 -0
  223. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/LICENSE.txt +0 -0
  224. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/amqptypes.py +0 -0
  225. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/constants.py +0 -0
  226. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/_uamqp/message.py +0 -0
  227. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/helpers.py +0 -0
  228. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/__init__.py +0 -0
  229. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/events.py +0 -0
  230. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/managed.py +0 -0
  231. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/amqp/protocol/reconnect.py +0 -0
  232. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/in_memory/__init__.py +0 -0
  233. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/in_memory/utils.py +0 -0
  234. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/kafka/__init__.py +0 -0
  235. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/kafka/protocols.py +0 -0
  236. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/nats/__init__.py +0 -0
  237. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/helpers.py +0 -0
  238. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/channel.py +0 -0
  239. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/credentials.py +0 -0
  240. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/pubsub/protocol/received_message.py +0 -0
  241. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/redis/__init__.py +0 -0
  242. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/sqs/__init__.py +0 -0
  243. {repid-2.2.0a1 → repid-2.2.2}/repid/connections/sqs/constants.py +0 -0
  244. {repid-2.2.0a1 → repid-2.2.2}/repid/data/__init__.py +0 -0
  245. {repid-2.2.0a1 → repid-2.2.2}/repid/data/contact.py +0 -0
  246. {repid-2.2.0a1 → repid-2.2.2}/repid/data/converter_input_schema.py +0 -0
  247. {repid-2.2.0a1 → repid-2.2.2}/repid/data/external_docs.py +0 -0
  248. {repid-2.2.0a1 → repid-2.2.2}/repid/data/license.py +0 -0
  249. {repid-2.2.0a1 → repid-2.2.2}/repid/data/message.py +0 -0
  250. {repid-2.2.0a1 → repid-2.2.2}/repid/data/message_schema.py +0 -0
  251. {repid-2.2.0a1 → repid-2.2.2}/repid/data/operation.py +0 -0
  252. {repid-2.2.0a1 → repid-2.2.2}/repid/data/runner_info.py +0 -0
  253. {repid-2.2.0a1 → repid-2.2.2}/repid/data/tag.py +0 -0
  254. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/__init__.py +0 -0
  255. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/full_payload.py +0 -0
  256. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/header_dependency.py +0 -0
  257. {repid-2.2.0a1 → repid-2.2.2}/repid/dependencies/message_dependency.py +0 -0
  258. {repid-2.2.0a1 → repid-2.2.2}/repid/logger.py +0 -0
  259. {repid-2.2.0a1 → repid-2.2.2}/repid/message_registry.py +0 -0
  260. {repid-2.2.0a1 → repid-2.2.2}/repid/py.typed +0 -0
  261. {repid-2.2.0a1 → repid-2.2.2}/repid/serializer.py +0 -0
  262. {repid-2.2.0a1 → repid-2.2.2}/repid/server_registry.py +0 -0
  263. {repid-2.2.0a1 → repid-2.2.2}/tests/__init__.py +0 -0
  264. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/__init__.py +0 -0
  265. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/pubsub_proto_helpers.py +0 -0
  266. {repid-2.2.0a1 → repid-2.2.2}/tests/integration/rabbitmq_definitions.json +0 -0
  267. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/__init__.py +0 -0
  268. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/__init__.py +0 -0
  269. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/test_logging.py +0 -0
  270. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/amqp/utils.py +0 -0
  271. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/in_memory/__init__.py +0 -0
  272. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/__init__.py +0 -0
  273. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_credentials.py +0 -0
  274. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_proto.py +0 -0
  275. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/pubsub/protocol/test_received_message.py +0 -0
  276. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/redis/__init__.py +0 -0
  277. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/redis/test_connection.py +0 -0
  278. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_kafka_connection.py +0 -0
  279. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_nats_connection.py +0 -0
  280. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_serializer.py +0 -0
  281. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_server_registry.py +0 -0
  282. {repid-2.2.0a1 → repid-2.2.2}/tests/unit/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Repid Devcontainer",
3
- "image": "mcr.microsoft.com/devcontainers/python:1-3.10-bookworm",
3
+ "image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm",
4
4
  "features": {
5
5
  "ghcr.io/va-h/devcontainers-features/uv:1": {},
6
6
  "ghcr.io/jungaretti/features/make:1": {},
@@ -9,14 +9,13 @@
9
9
  "customizations": {
10
10
  "vscode": {
11
11
  "settings": {
12
- "python.defaultInterpreterPath": "/usr/local/bin/python",
12
+ "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
13
13
  "python.venvPath": "${workspaceFolder}/.venv"
14
14
  },
15
15
  "extensions": [
16
16
  "ms-python.python",
17
- "ms-python.vscode-pylance",
18
17
  "ms-python.debugpy",
19
- "matangover.mypy",
18
+ "meta.pyrefly",
20
19
  "charliermarsh.ruff",
21
20
  "ryanluker.vscode-coverage-gutters",
22
21
  "seatonjiang.gitmoji-vscode",
@@ -0,0 +1,37 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: uv
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
7
+ cooldown:
8
+ default-days: 7
9
+ commit-message:
10
+ prefix: ⬆
11
+ groups:
12
+ python-packages:
13
+ patterns: ['*']
14
+
15
+ - package-ecosystem: pre-commit
16
+ directory: /
17
+ schedule:
18
+ interval: monthly
19
+ cooldown:
20
+ default-days: 7
21
+ commit-message:
22
+ prefix: ⬆
23
+ groups:
24
+ python-packages:
25
+ patterns: ['*']
26
+
27
+ - package-ecosystem: github-actions
28
+ directory: /
29
+ schedule:
30
+ interval: monthly
31
+ cooldown:
32
+ default-days: 7
33
+ commit-message:
34
+ prefix: ⬆
35
+ groups:
36
+ github-actions:
37
+ patterns: ['*']
@@ -0,0 +1,96 @@
1
+ # This file is machine-generated by `gh actions-lock`.
2
+ # Do not edit by hand; run `gh actions-lock` to update.
3
+ # Docs: https://gh.io/actions-lockfile
4
+ version: 'v0.0.3'
5
+ workflows:
6
+ '.github/workflows/codeql.yml':
7
+ - 'actions/checkout@v7.0.1'
8
+ - 'github/codeql-action@v4.39.3'
9
+ '.github/workflows/dependency-review.yml':
10
+ - 'actions/checkout@v7.0.1'
11
+ - 'actions/dependency-review-action@v5.0.0'
12
+ - 'astral-sh/setup-uv@v10.3.3'
13
+ '.github/workflows/docs.yml':
14
+ - 'actions/checkout@v7.0.1'
15
+ - 'astral-sh/setup-uv@v10.3.3'
16
+ '.github/workflows/prek.yml':
17
+ - 'actions/checkout@v7.0.1'
18
+ - 'astral-sh/setup-uv@v10.3.3'
19
+ '.github/workflows/release.yaml':
20
+ - 'actions/checkout@v7.0.1'
21
+ - 'actions/download-artifact@v8.0.2'
22
+ - 'actions/upload-artifact@v7.0.2'
23
+ - 'astral-sh/setup-uv@v10.3.3'
24
+ - 'pypa/gh-action-pypi-publish@v1.14.3'
25
+ '.github/workflows/tests.yaml':
26
+ - 'actions/checkout@v7.0.1'
27
+ - 'actions/download-artifact@v8.0.2'
28
+ - 'actions/setup-node@v7.1.0'
29
+ - 'actions/upload-artifact@v7.0.2'
30
+ - 'astral-sh/setup-uv@v10.3.3'
31
+ '.github/workflows/typecheck.yml':
32
+ - 'actions/checkout@v7.0.1'
33
+ - 'astral-sh/setup-uv@v10.3.3'
34
+ '.github/workflows/workflow-lint.yml':
35
+ - 'actions/checkout@v7.0.1'
36
+ - 'zizmorcore/zizmor-action@v0.8.1'
37
+ dependencies:
38
+ 'actions/checkout@v7.0.1':
39
+ ref: 'v7.0.1'
40
+ commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
41
+ owner_id: 44036562
42
+ repo_id: 197814629
43
+ 'actions/dependency-review-action@v5.0.0':
44
+ ref: 'v5.0.0'
45
+ commit: 'sha1-a1d282b36b6f3519aa1f3fc636f609c47dddb294'
46
+ owner_id: 44036562
47
+ repo_id: 476372928
48
+ 'actions/download-artifact@v8.0.2':
49
+ ref: 'v8.0.2'
50
+ commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
51
+ owner_id: 44036562
52
+ repo_id: 192626254
53
+ 'actions/setup-node@v7.1.0':
54
+ ref: 'v7.1.0'
55
+ commit: 'sha1-949feb2413d6458794dcd2491c4babbbce0c15c1'
56
+ owner_id: 44036562
57
+ repo_id: 189476904
58
+ 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
59
+ ref: 'v6.2.0'
60
+ commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
61
+ owner_id: 44036562
62
+ repo_id: 192625525
63
+ 'actions/upload-artifact@v7.0.2':
64
+ ref: 'v7.0.2'
65
+ commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
66
+ owner_id: 44036562
67
+ repo_id: 192625955
68
+ 'astral-sh/setup-uv@v10.3.3':
69
+ ref: 'v10.3.3'
70
+ commit: 'sha1-68559e99cc807c1eb7e9238fd43a15bba460eec2'
71
+ owner_id: 115962839
72
+ repo_id: 846733598
73
+ 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370':
74
+ ref: 'v4.39.1'
75
+ commit: 'sha1-9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
76
+ owner_id: 9919
77
+ repo_id: 259445878
78
+ 'github/codeql-action@v4.39.3':
79
+ ref: 'v4.39.3'
80
+ commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
81
+ owner_id: 9919
82
+ repo_id: 259445878
83
+ 'pypa/gh-action-pypi-publish@v1.14.3':
84
+ ref: 'v1.14.3'
85
+ commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
86
+ owner_id: 647025
87
+ repo_id: 178055147
88
+ uses:
89
+ - 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
90
+ 'zizmorcore/zizmor-action@v0.8.1':
91
+ ref: 'v0.8.1'
92
+ commit: 'sha1-45d7276c9ca790aabd705e31ca99c6185c3e76dd'
93
+ owner_id: 210636713
94
+ repo_id: 985558803
95
+ uses:
96
+ - 'github/codeql-action@9b3254085494b55a0f7c4c2b3d2d52cc712ce370'
@@ -38,11 +38,13 @@ jobs:
38
38
 
39
39
  steps:
40
40
  - name: Checkout repository
41
- uses: actions/checkout@v7
41
+ uses: actions/checkout@v7.0.1
42
+ with:
43
+ persist-credentials: false
42
44
 
43
45
  # Initializes the CodeQL tools for scanning.
44
46
  - name: Initialize CodeQL
45
- uses: github/codeql-action/init@v4.37.9
47
+ uses: github/codeql-action/init@v4.39.3
46
48
  with:
47
49
  languages: ${{ matrix.language }}
48
50
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -55,7 +57,7 @@ jobs:
55
57
  # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56
58
  # If this step fails, then you should remove it and run the build manually (see below)
57
59
  - name: Autobuild
58
- uses: github/codeql-action/autobuild@v4.37.9
60
+ uses: github/codeql-action/autobuild@v4.39.3
59
61
 
60
62
  # ℹ️ Command-line programs to run using the OS shell.
61
63
  # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,4 +70,4 @@ jobs:
68
70
  # ./location_of_script_within_repo/buildscript.sh
69
71
 
70
72
  - name: Perform CodeQL Analysis
71
- uses: github/codeql-action/analyze@v4.37.9
73
+ uses: github/codeql-action/analyze@v4.39.3
@@ -16,13 +16,15 @@ jobs:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
18
  - name: Checkout Repository
19
- uses: actions/checkout@v7
19
+ uses: actions/checkout@v7.0.1
20
+ with:
21
+ persist-credentials: false
20
22
 
21
23
  - name: Setup uv
22
- uses: astral-sh/setup-uv@v7
24
+ uses: astral-sh/setup-uv@v10.3.3
23
25
 
24
26
  - name: Export requirements
25
27
  run: uv export --format requirements-txt --frozen --all-groups --all-extras > requirements.txt
26
28
 
27
29
  - name: Dependency Review
28
- uses: actions/dependency-review-action@v5
30
+ uses: actions/dependency-review-action@v5.0.0
@@ -0,0 +1,89 @@
1
+ name: Docs
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - docs/**
7
+ - zensical.toml
8
+ - pyproject.toml
9
+ - uv.lock
10
+ - .github/workflows/docs.yml
11
+ release:
12
+ types:
13
+ - published
14
+ workflow_dispatch:
15
+ inputs:
16
+ tag:
17
+ description: Release tag to deploy
18
+ required: true
19
+ type: string
20
+
21
+ permissions:
22
+ contents: read
23
+
24
+ concurrency:
25
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
26
+ cancel-in-progress: true
27
+
28
+ jobs:
29
+ build_docs:
30
+ name: Build docs for review
31
+ if: github.event_name == 'pull_request'
32
+ runs-on: ubuntu-latest
33
+ timeout-minutes: 10
34
+ steps:
35
+ - name: Checkout repository
36
+ uses: actions/checkout@v7.0.1
37
+ with:
38
+ persist-credentials: false
39
+
40
+ - name: Setup uv
41
+ uses: astral-sh/setup-uv@v10.3.3
42
+ with:
43
+ enable-cache: false
44
+
45
+ - name: Install docs dependencies
46
+ run: uv sync --only-group docs --frozen --python 3.11
47
+
48
+ - name: Build docs
49
+ run: uv run --no-sync zensical build
50
+
51
+ deploy_docs:
52
+ if: github.event_name != 'pull_request'
53
+ runs-on: ubuntu-latest
54
+ timeout-minutes: 10
55
+ permissions:
56
+ contents: write
57
+ steps:
58
+ - name: Checkout repository
59
+ uses: actions/checkout@v7.0.1
60
+ with:
61
+ ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.tag) || github.ref }}
62
+ fetch-depth: 0
63
+ persist-credentials: false
64
+
65
+ - name: Setup git user
66
+ run: |
67
+ git config user.name github-actions
68
+ git config user.email github-actions@github.com
69
+
70
+ - name: Setup uv
71
+ uses: astral-sh/setup-uv@v10.3.3
72
+ with:
73
+ enable-cache: false
74
+
75
+ - name: Install docs dependencies
76
+ run: uv sync --only-group docs --frozen --python 3.11
77
+
78
+ - name: Build docs and commit the version locally
79
+ env:
80
+ RELEASE_TAG: ${{ github.event.release.tag_name || inputs.tag }}
81
+ run: |
82
+ uv run --no-sync mike deploy --update-aliases -- "${RELEASE_TAG#v}" latest
83
+
84
+ - name: Publish docs
85
+ env:
86
+ GH_TOKEN: ${{ github.token }}
87
+ run: |
88
+ gh auth setup-git --hostname github.com
89
+ git push origin gh-pages
@@ -0,0 +1,32 @@
1
+ name: prek
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ permissions:
7
+ contents: read
8
+
9
+ concurrency:
10
+ group: ${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+
13
+ jobs:
14
+ prek:
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 10
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v7.0.1
20
+ with:
21
+ fetch-depth: 0
22
+ persist-credentials: false
23
+
24
+ - name: Setup uv
25
+ uses: astral-sh/setup-uv@v10.3.3
26
+
27
+ - name: Run prek
28
+ env:
29
+ BASE_SHA: ${{ github.event.pull_request.base.sha }}
30
+ run: |
31
+ uv run --locked --only-group prek --python 3.11 prek run \
32
+ --from-ref "$BASE_SHA" --to-ref HEAD --skip pyrefly --show-diff-on-failure
@@ -0,0 +1,53 @@
1
+ name: Release
2
+
3
+ on:
4
+ release:
5
+ types:
6
+ - published
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: read
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v7.0.1
17
+ with:
18
+ fetch-depth: 0
19
+ persist-credentials: false
20
+
21
+ - name: Setup uv
22
+ uses: astral-sh/setup-uv@v10.3.3
23
+ with:
24
+ enable-cache: false
25
+
26
+ - name: Build
27
+ run: uv build
28
+
29
+ - name: Store distributions
30
+ uses: actions/upload-artifact@v7.0.2
31
+ with:
32
+ name: distributions
33
+ path: dist/
34
+ if-no-files-found: error
35
+
36
+ release:
37
+ needs: build
38
+ runs-on: ubuntu-latest
39
+ environment: release
40
+ permissions:
41
+ # Required for PyPI Trusted Publishing and signing attestations.
42
+ id-token: write
43
+ steps:
44
+ - name: Download distributions
45
+ uses: actions/download-artifact@v8.0.2
46
+ with:
47
+ name: distributions
48
+ path: dist/
49
+
50
+ - name: Publish to PyPI
51
+ uses: pypa/gh-action-pypi-publish@v1.14.3
52
+ with:
53
+ attestations: true
@@ -0,0 +1,183 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ pull_request:
8
+ branches:
9
+ - main
10
+ workflow_dispatch:
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ concurrency:
16
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
17
+ cancel-in-progress: true
18
+
19
+ jobs:
20
+ package:
21
+ name: Build and smoke-test package
22
+ runs-on: ubuntu-latest
23
+ timeout-minutes: 10
24
+ steps:
25
+ - name: Checkout repository
26
+ uses: actions/checkout@v7.0.1
27
+ with:
28
+ fetch-depth: 0
29
+ persist-credentials: false
30
+
31
+ - name: Setup uv
32
+ uses: astral-sh/setup-uv@v10.3.3
33
+
34
+ - name: Build wheel and source distribution
35
+ run: uv build --python 3.11
36
+
37
+ - name: Install and import the wheel
38
+ run: |
39
+ uv run --isolated --no-project --python 3.11 --with dist/*.whl -- \
40
+ python -I -c 'from repid import Repid; Repid()'
41
+
42
+ unit-tests:
43
+ name: Unit tests (Python ${{ matrix.python-version }})
44
+ runs-on: ubuntu-latest
45
+ timeout-minutes: 45
46
+
47
+ strategy:
48
+ fail-fast: false
49
+ matrix:
50
+ python-version:
51
+ - '3.11'
52
+ - '3.12'
53
+ - '3.13'
54
+ - '3.14'
55
+ - '3.15'
56
+
57
+ steps:
58
+ - name: Checkout repository
59
+ uses: actions/checkout@v7.0.1
60
+ with:
61
+ persist-credentials: false
62
+
63
+ - name: Setup uv
64
+ uses: astral-sh/setup-uv@v10.3.3
65
+
66
+ - name: Install test dependencies
67
+ run: uv sync --frozen --all-extras --group tests --python ${{ matrix.python-version }}
68
+
69
+ - name: Run unit tests
70
+ run: uv run --no-sync coverage run -m pytest --color=yes tests/unit
71
+
72
+ - name: Display coverage
73
+ run: uv run --no-sync coverage report --no-skip-covered --show-missing --fail-under=0
74
+
75
+ - name: Rename .coverage file
76
+ run: |
77
+ mkdir coverage
78
+ mv .coverage coverage/.coverage.unit-py${{ matrix.python-version }}
79
+
80
+ - name: Store coverage files
81
+ uses: actions/upload-artifact@v7.0.2
82
+ with:
83
+ name: coverage-unit-py${{ matrix.python-version }}
84
+ path: coverage
85
+ include-hidden-files: true
86
+ if-no-files-found: error
87
+
88
+ integration-tests:
89
+ name: Integration tests (${{ matrix.target }}, Python ${{ matrix.python-version }})
90
+ runs-on: ubuntu-latest
91
+ timeout-minutes: 45
92
+ strategy:
93
+ fail-fast: false
94
+ matrix:
95
+ python-version: ['3.11', '3.12', '3.13', '3.14', '3.15']
96
+ target: [rabbitmq, activemq, pubsub, redis, kafka, nats, sqs, asyncapi]
97
+ env:
98
+ TEST_TARGET: ${{ matrix.target }}
99
+
100
+ steps:
101
+ - name: Checkout repository
102
+ uses: actions/checkout@v7.0.1
103
+ with:
104
+ persist-credentials: false
105
+
106
+ - name: Setup uv
107
+ uses: astral-sh/setup-uv@v10.3.3
108
+
109
+ - name: Install test dependencies
110
+ run: uv sync --frozen --all-extras --group tests --python ${{ matrix.python-version }}
111
+
112
+ - name: Start and prepare broker
113
+ if: matrix.target != 'asyncapi'
114
+ run: uv run --no-sync python -m tests.integration.brokers "$TEST_TARGET" --env-file "$GITHUB_ENV"
115
+
116
+ - name: Set up Node.js for AsyncAPI validation
117
+ if: matrix.target == 'asyncapi'
118
+ uses: actions/setup-node@v7.1.0
119
+ with:
120
+ node-version: 26.13.1
121
+ package-manager-cache: false
122
+
123
+ - name: Install locked AsyncAPI dependencies
124
+ if: matrix.target == 'asyncapi'
125
+ working-directory: tests/integration/asyncapi
126
+ run: npm ci --ignore-scripts --no-audit --no-fund
127
+
128
+ - name: Run integration tests
129
+ env:
130
+ REPID_TEST_ASYNCAPI_PREPARED: ${{ matrix.target == 'asyncapi' }}
131
+ run: |
132
+ uv run --no-sync coverage run -m pytest --color=yes tests/integration \
133
+ -m "integration_target(name='$TEST_TARGET')"
134
+
135
+ - name: Show broker logs
136
+ if: failure() && env.REPID_TEST_CONTAINER != ''
137
+ run: docker logs --tail 100 "$REPID_TEST_CONTAINER"
138
+
139
+ - name: Stop broker
140
+ if: always() && env.REPID_TEST_CONTAINER != ''
141
+ run: docker rm --force --volumes "$REPID_TEST_CONTAINER"
142
+
143
+ - name: Rename .coverage file
144
+ run: |
145
+ mkdir coverage
146
+ mv .coverage "coverage/.coverage.integration-${TEST_TARGET}-py${{ matrix.python-version }}"
147
+
148
+ - name: Store coverage files
149
+ uses: actions/upload-artifact@v7.0.2
150
+ with:
151
+ name: coverage-${{ matrix.target }}-py${{ matrix.python-version }}
152
+ path: coverage
153
+ include-hidden-files: true
154
+ if-no-files-found: error
155
+
156
+ coverage-combine:
157
+ needs: [unit-tests, integration-tests]
158
+ runs-on: ubuntu-latest
159
+ timeout-minutes: 10
160
+
161
+ steps:
162
+ - uses: actions/checkout@v7.0.1
163
+ with:
164
+ persist-credentials: false
165
+
166
+ - name: Setup uv
167
+ uses: astral-sh/setup-uv@v10.3.3
168
+
169
+ - name: Get coverage files
170
+ uses: actions/download-artifact@v8.0.2
171
+ with:
172
+ path: coverage
173
+ pattern: coverage-*
174
+ merge-multiple: true
175
+
176
+ - name: Install coverage dependencies
177
+ run: uv sync --frozen --only-group tests --python 3.11
178
+
179
+ - name: Combine coverage and enforce the threshold
180
+ run: |
181
+ uv run --no-sync coverage combine coverage
182
+ uv run --no-sync coverage report --format=markdown --skip-covered --show-missing \
183
+ >> "$GITHUB_STEP_SUMMARY"
@@ -0,0 +1,35 @@
1
+ name: Type check
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ typecheck:
18
+ name: Type check (Python 3.11)
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 15
21
+
22
+ steps:
23
+ - name: Checkout repository
24
+ uses: actions/checkout@v7.0.1
25
+ with:
26
+ persist-credentials: false
27
+
28
+ - name: Setup uv
29
+ uses: astral-sh/setup-uv@v10.3.3
30
+
31
+ - name: Install type-checking dependencies
32
+ run: uv sync --frozen --all-extras --group lint --group tests --python 3.11
33
+
34
+ - name: Run Pyrefly
35
+ run: uv run --no-sync pyrefly check --output-format=full-text-with-github
@@ -0,0 +1,41 @@
1
+ name: Workflow lint
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ lint:
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 10
20
+ steps:
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v7.0.1
23
+ with:
24
+ persist-credentials: false
25
+
26
+ - name: Check workflow syntax
27
+ run: go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.12
28
+
29
+ - name: Verify action lockfile
30
+ env:
31
+ GH_TOKEN: ${{ github.token }}
32
+ run: |
33
+ gh extension install github/gh-actions-lock --pin v0.4.1
34
+ gh actions-lock --verify
35
+
36
+ - name: Audit workflows with zizmor
37
+ uses: zizmorcore/zizmor-action@v0.8.1
38
+ with:
39
+ advanced-security: false
40
+ annotations: true
41
+ online-audits: false
@@ -38,6 +38,7 @@ pip-log.txt
38
38
  pip-delete-this-directory.txt
39
39
 
40
40
  # Unit test / coverage reports
41
+ /tests/integration/asyncapi/node_modules/
41
42
  htmlcov/
42
43
  .tox/
43
44
  .nox/
@@ -1,9 +1,3 @@
1
- ci:
2
- skip:
3
- - mypy
4
- autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
5
- autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
6
-
7
1
  repos:
8
2
  - repo: https://github.com/pre-commit/pre-commit-hooks
9
3
  rev: v6.0.0
@@ -19,14 +13,14 @@ repos:
19
13
  - id: end-of-file-fixer
20
14
 
21
15
  - repo: https://github.com/astral-sh/ruff-pre-commit
22
- rev: v0.16.6
16
+ rev: v0.17.4
23
17
  hooks:
24
18
  - id: ruff-check
25
19
  args: [--fix, --exit-non-zero-on-fix]
26
20
  - id: ruff-format
27
21
 
28
22
  - repo: https://github.com/igorshubovych/markdownlint-cli
29
- rev: v0.49.1
23
+ rev: v0.50.0
30
24
  hooks:
31
25
  - id: markdownlint-fix
32
26
  args: [--config=pyproject.toml, --configPointer=/tool/markdownlint]
@@ -42,10 +36,10 @@ repos:
42
36
 
43
37
  - repo: local
44
38
  hooks:
45
- - id: mypy
46
- name: mypy
47
- language: python
39
+ - id: pyrefly
40
+ name: pyrefly
41
+ language: unsupported
48
42
  pass_filenames: false
49
- entry: uv run --no-active mypy .
43
+ entry: uv run --no-active --frozen --all-extras --group lint --group tests pyrefly check
50
44
  types: [python]
51
45
  require_serial: true