Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update main.py #13090

Conversation

mohammadaminjohari
Copy link

Add Sphinx-compatible docstrings and inline comments for main.py (lines 245-490)

This pull request addresses issue #12979 by enhancing the documentation and code clarity in the file pytest/src/_pytest/main.py for lines 245-490.

Changes Made:

  1. Docstrings:

Added Sphinx-compatible docstrings for all functions in the specified range.

Each docstring includes:

A brief description of the function's purpose.

Parameter details (names, types, and expected values).

Information about return types and possible return values.

Exceptions raised by the function.

  1. Inline Comments:

Added meaningful inline comments to clarify complex or non-obvious parts of the code, improving readability.

All changes have been verified locally by running the test suite using tox. No errors or warnings were found.

Please review the changes and let me know if further adjustments are required.

Best regards,
Mohammadamin Johari

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.

1 participant