Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ pytest_addoption
Function
pytest_addoption
src/_pytest/pythonpath.py:8–9 ·
view source on GitHub ↗
(parser: Parser)
Source
from the content-addressed store, hash-verified
6
7
8
def
pytest_addoption(parser: Parser) -> None:
9
parser.addini(
"pythonpath"
, type=
"paths"
, help=
"Add paths to sys.path"
, default=[])
10
11
12
@pytest.hookimpl(tryfirst=True)
Callers
nothing calls this directly
Calls
1
addini
Method · 0.80
Tested by
no test coverage detected