We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 240a252 commit 1d103e5Copy full SHA for 1d103e5
src/_pytest/hookspec.py
@@ -310,7 +310,12 @@ def pytest_collection_finish(session: "Session") -> None:
310
def pytest_ignore_collect(
311
collection_path: Path, path: "LEGACY_PATH", config: "Config"
312
) -> Optional[bool]:
313
- """Return True to prevent considering this path for collection.
+ """Return ``True`` to ignore this path for collection.
314
+
315
+ Return ``None`` to let other plugins ignore the path for collection.
316
317
+ Returning ``False`` will forcefully *not* ignore this path for collection,
318
+ without giving a chance for other plugins to ignore this path.
319
320
This hook is consulted for all files and directories prior to calling
321
more specific hooks.
0 commit comments