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

Function check_python_files_changed

ci/python_lint_cache.py:40–61  ·  view source on GitHub ↗

Check if Python files have changed since the last successful lint run. Uses zccache-fingerprint for blake3-based change detection. Returns: True if files changed and pyright should run False if no changes detected and pyright can be skipped

()

Source from the content-addressed store, hash-verified

38
39
40def check_python_files_changed() -> bool:
41 """
42 Check if Python files have changed since the last successful lint run.
43
44 Uses zccache-fingerprint for blake3-based change detection.
45
46 Returns:
47 True if files changed and pyright should run
48 False if no changes detected and pyright can be skipped
49 """
50 cache = _get_python_lint_cache()
51 needs_update = cache.check_needs_update(
52 include=_PYTHON_LINT_INCLUDE,
53 exclude=_PYTHON_LINT_EXCLUDE,
54 )
55
56 if needs_update:
57 print_cache_miss("Python files changed - running pyright")
58 return True
59 else:
60 print_cache_hit("No Python changes detected - skipping pyright")
61 return False
62
63
64def mark_python_lint_success() -> None:

Callers 2

run_pyrightFunction · 0.90
mainFunction · 0.85

Calls 4

print_cache_missFunction · 0.90
print_cache_hitFunction · 0.90
_get_python_lint_cacheFunction · 0.85
check_needs_updateMethod · 0.45

Tested by

no test coverage detected