Buckets:

download
raw
689 Bytes
from pathlib import Path
def pytest_ignore_collect(collection_path: Path, config):
"""Prevent pytest from collecting files under the `knowledge_base` folder.
This is a defensive measure so that running `pytest` in the repository will
never attempt to collect or import the third-party/knowledge-base content
that pulls in heavy optional packages.
"""
try:
# Path.parts handles cross-platform separators; convert to set for contains check.
parts = set(collection_path.parts)
if "knowledge_base" in parts:
return True
except Exception:
# If anything goes wrong, don't block collection elsewhere
return False

Xet Storage Details

Size:
689 Bytes
·
Xet hash:
7297b991bc3fdc268f095f612448c93a751b127fc597149a6a4f22a57568c528

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.