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

Method check_python

ci/util/fingerprint.py:234–243  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

232 return self.check("examples", lambda: calculate_examples_fingerprint(args))
233
234 def check_python(self) -> bool:
235 cwd = Path.cwd()
236 # Fast-path: if ci/ has no .py file changes since last write, skip 135ms hash.
237 # Python tests depend on ci/ Python modules and ci/tests/ test files.
238 # IMPORTANT: Must use _PY_SOURCE_EXTS here since ci/ contains Python files,
239 # not C++ files. Using the default C++ extensions would cause the fast path
240 # to always fire (finding no .py changes), silently skipping Python tests.
241 if self._mtime_fast_path("python_test", cwd / "ci", exts=_PY_SOURCE_EXTS):
242 return False # no change detected via mtime fast-path
243 return self.check("python_test", calculate_python_test_fingerprint)
244
245 def check_wasm(self) -> bool:
246 cwd = Path.cwd()

Callers

nothing calls this directly

Calls 2

_mtime_fast_pathMethod · 0.95
checkMethod · 0.95

Tested by

no test coverage detected