MCPcopy Create free account
hub / github.com/FastLED/FastLED / should_skip_path

Function should_skip_path

ci/fix_has_include.py:41–53  ·  view source on GitHub ↗

Check if path should be skipped.

(path: Path)

Source from the content-addressed store, hash-verified

39
40
41def should_skip_path(path: Path) -> bool:
42 """Check if path should be skipped."""
43 # Skip if in excluded directory
44 for part in path.parts:
45 if part in EXCLUDE_DIRS:
46 return True
47
48 # Skip if in excluded files list
49 relative = path.relative_to(PROJECT_ROOT)
50 if str(relative).replace("\\", "/") in EXCLUDE_FILES:
51 return True
52
53 return False
54
55
56def find_files_using_macro(macro_name: str) -> set[Path]:

Callers 1

find_files_using_macroFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected