pytest-dev / pytest-dev/pluggy

support async hook calls

Open
#320 7 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.7k
Forks
160
Avg merge
21h 4m
Merged PRs (30d)
6

Description

follow-up/spin out to #151

it should be possible to have a a await transparent hook caller interface that allows to await hooks

optionally integrated with https://greenback.readthedocs.io/en/latest/ so that accidentally wrongly coloured hooks can be worked around

  • basic await transparency
  • apis/entrypoints for async hook calling from a normal hook manager
  • define what happens when a async hook call happens
  • define how sync/async hooks interact (do we need async first internals)
  • consider https://simonwillison.net/2020/Sep/2/await-me-maybe/
  • write up a guide on hook colors

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the follow-up issue #151 and the linked greenback documentation, then review the await-me-maybe reference. Clarify the checklist decisions around await transparency, async entry points, async-call behavior, and sync/async hook interaction. Done includes agreed APIs and behavior plus the requested guide on hook colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.