Skip to content

Add missing docstrings to pytest/src/_pytest/main.py (lines 245-490)#14757

Open
vtino17 wants to merge 1 commit into
pytest-dev:mainfrom
vtino17:fix/docstrings-main
Open

Add missing docstrings to pytest/src/_pytest/main.py (lines 245-490)#14757
vtino17 wants to merge 1 commit into
pytest-dev:mainfrom
vtino17:fix/docstrings-main

Conversation

@vtino17

@vtino17 vtino17 commented Jul 22, 2026

Copy link
Copy Markdown

Summary

Adds missing docstrings to functions in \src/_pytest/main.py\ between lines 245 and 490 to improve code documentation.

Changes

Functions that received docstrings:

  • \�alidate_basetemp()\ — documented validation logic and raised exception
  • \pytest_cmdline_main()\ — documented as main CLI entry point
  • \pytest_collection()\ — documented collection trigger
  • \pytest_runtestloop()\ — documented test loop execution
  • \pytest_ignore_collect()\ — documented ignore-conditions (ignore/ignore-glob/norecursedirs/venv)
  • \pytest_collect_directory()\ — documented Dir collector creation
  • \pytest_collection_modifyitems()\ — documented deselect filtering

Fixes #12979

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.

Add Missing Docstrings and inline comments to pytest/src/_pytest/main.py (Lines 245-490)

1 participant