MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / match_allowlist

Function match_allowlist

tools/docs_and_notebooks_check.py:589–591  ·  view source on GitHub ↗
(rel_path: str, allowlist: list[str])

Source from the content-addressed store, hash-verified

587
588
589def match_allowlist(rel_path: str, allowlist: list[str]) -> bool:
590 # Support exact matches or glob patterns
591 return any(pat == rel_path or fnmatch.fnmatch(rel_path, pat) for pat in allowlist)
592
593
594# -----------------------------

Callers 1

enforceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected