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

Add Missing Docstrings to main.py #13006

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/_pytest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,16 @@ def pytest_addoption(parser: Parser) -> None:
),
)

"""Check basetemp dir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docstrings in python fo into the definition

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also references a non-existent argument. It's not a docstring really...


:param path:
Path to the basetemp [str]
Returns path if all the path is not empty and do not ancestor by symlink
raises argparse.ArgumentTypeError in in case of path is empty or is an ancestor of the basetemp
"""

# Disable since functions handle it themselves.


def validate_basetemp(path: str) -> str:
# GH 7119
Expand Down
Loading