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

Function iter_scan_candidate_paths

tools/docs_and_notebooks_check.py:329–339  ·  view source on GitHub ↗

Return all repo-relative paths that are in scope for scanning, before applying --targets.

(repo_root: Path, cfg: ToolConfig)

Source from the content-addressed store, hash-verified

327
328
329def iter_scan_candidate_paths(repo_root: Path, cfg: ToolConfig) -> list[str]:
330 """
331 Return all repo-relative paths that are in scope for scanning, before applying --targets.
332 """
333 rels: list[str] = []
334 for p in glob_paths(repo_root, cfg.scan.include):
335 rel = str(p.resolve().relative_to(repo_root)).replace(os.sep, "/")
336 if is_excluded(rel, cfg.scan.exclude):
337 continue
338 rels.append(rel)
339 return sorted(set(rels))
340
341
342def validate_requested_targets(

Callers 1

Calls 2

glob_pathsFunction · 0.85
is_excludedFunction · 0.85

Tested by

no test coverage detected