Clarify pytest_ignore_collect docs (#12385)
Fixes #12383 Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
parent
48cb8a2b32
commit
9f121e85a7
|
@ -311,7 +311,12 @@ def pytest_collection_finish(session: "Session") -> None:
|
||||||
def pytest_ignore_collect(
|
def pytest_ignore_collect(
|
||||||
collection_path: Path, path: "LEGACY_PATH", config: "Config"
|
collection_path: Path, path: "LEGACY_PATH", config: "Config"
|
||||||
) -> Optional[bool]:
|
) -> Optional[bool]:
|
||||||
"""Return True to prevent considering this path for collection.
|
"""Return ``True`` to ignore this path for collection.
|
||||||
|
|
||||||
|
Return ``None`` to let other plugins ignore the path for collection.
|
||||||
|
|
||||||
|
Returning ``False`` will forcefully *not* ignore this path for collection,
|
||||||
|
without giving a chance for other plugins to ignore this path.
|
||||||
|
|
||||||
This hook is consulted for all files and directories prior to calling
|
This hook is consulted for all files and directories prior to calling
|
||||||
more specific hooks.
|
more specific hooks.
|
||||||
|
|
Loading…
Reference in New Issue