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