MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _is_excluded

Function _is_excluded

functions/function_calling/file.py:1036–1040  ·  view source on GitHub ↗
(relative_posix: str, exclude_patterns: Sequence[str])

Source from the content-addressed store, hash-verified

1034
1035
1036def _is_excluded(relative_posix: str, exclude_patterns: Sequence[str]) -> bool:
1037 for pattern in exclude_patterns:
1038 if fnmatch.fnmatch(relative_posix, pattern):
1039 return True
1040 return False
1041
1042
1043def _read_file_lines_for_search(path: Path) -> List[str]:

Callers 1

_iter_candidate_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected