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

Function invalidate_python_cache

ci/python_lint_cache.py:83–96  ·  view source on GitHub ↗

Invalidate the cache when lint/test fails, forcing a re-run next time.

()

Source from the content-addressed store, hash-verified

81
82
83def invalidate_python_cache() -> None:
84 """Invalidate the cache when lint/test fails, forcing a re-run next time."""
85 cache = _get_python_lint_cache()
86
87 try:
88 cache.invalidate()
89 print_cache_miss(
90 "Python lint cache invalidated - will re-run pyright next time"
91 )
92 except KeyboardInterrupt as ki:
93 handle_keyboard_interrupt(ki)
94 raise
95 except Exception as e:
96 print_cache_miss(f"Failed to invalidate Python cache: {e}")
97
98
99def main() -> int:

Callers 2

run_pyrightFunction · 0.90
mainFunction · 0.85

Calls 4

print_cache_missFunction · 0.90
_get_python_lint_cacheFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected