mirror of https://github.com/pytest-dev/pytest.git
[8.2.x] Clarify pytest_ignore_collect docs (#12386)
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
This commit is contained in:
parent
240a252d34
commit
1d103e5cdc
|
@ -310,7 +310,12 @@ def pytest_collection_finish(session: "Session") -> None:
|
|||
def pytest_ignore_collect(
|
||||
collection_path: Path, path: "LEGACY_PATH", config: "Config"
|
||||
) -> 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
|
||||
more specific hooks.
|
||||
|
|
Loading…
Reference in New Issue