MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / is_docs_path

Function is_docs_path

ci/check_paths.py:29–31  ·  view source on GitHub ↗

Everything under docs/ or blogs/, plus Markdown files anywhere.

(path: str)

Source from the content-addressed store, hash-verified

27
28
29def is_docs_path(path: str) -> bool:
30 """Everything under docs/ or blogs/, plus Markdown files anywhere."""
31 return path.startswith(DOC_DIRS) or path.endswith(DOC_SUFFIXES)
32
33
34def _is_ignored(path: str, ignore: list[str]) -> bool:

Callers 2

selectMethod · 0.90
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

selectMethod · 0.72