Skip to content

Tags: qizwiz/pact

Tags

v0.2.0

Toggle v0.2.0's commit message
fix(pact): suppress asyncio.run() and loop.run_until_complete() false…

… positives

Corpus scan of 15 LLM-topic repos found 90/179 unique missing_await
violations were asyncio.run(main()) — the canonical async entrypoint.

Added _CORO_CONSUMERS_QUALIFIED for receiver-qualified consumers:
  asyncio.run(coro())          — schedules coroutine as top-level task
  loop.run_until_complete(coro()) — same pattern with explicit event loop

Bare "run" intentionally excluded from _CORO_CONSUMERS — too common as
a method name on unrelated objects.

Adds 2 regression tests covering both patterns.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>