Skip to content

docs: move collection hooks from reporting to collection section#14313

Open
Aliipou wants to merge 1 commit intopytest-dev:mainfrom
Aliipou:fix/move-collection-hooks-from-reporting
Open

docs: move collection hooks from reporting to collection section#14313
Aliipou wants to merge 1 commit intopytest-dev:mainfrom
Aliipou:fix/move-collection-hooks-from-reporting

Conversation

@Aliipou
Copy link

@Aliipou Aliipou commented Mar 22, 2026

Summary

Fixes #12658.

The hooks pytest_collectstart, pytest_make_collect_report, pytest_itemcollected, pytest_collectreport, and pytest_deselected were listed under the "Reporting hooks" section in the reference docs, but they are collection-related hooks.

This PR moves them to the end of the "Collection hooks" section with a brief introductory line, and removes them from the "Reporting hooks" section.

Changes

  • Moved pytest_collectstart, pytest_make_collect_report, pytest_itemcollected, pytest_collectreport, and pytest_deselected from "Reporting hooks" to "Collection hooks" section
  • Added descriptive text: "During collection, the following hooks are called to track collection progress:"

?? Generated with Claude Code

Fixes pytest-dev#12658.

The hooks `pytest_collectstart`, `pytest_make_collect_report`,
`pytest_itemcollected`, `pytest_collectreport`, and `pytest_deselected`
were listed under the "Reporting hooks" section in the reference docs.
These hooks are collection-related and belong in the "Collection hooks"
section.

This commit moves them to the end of the Collection hooks section with
a brief description, and removes them from the Reporting hooks section.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: collection hooks listed under reporting hooks

1 participant