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

Method _get_project_hash

ci/profile_runner.py:425–434  ·  view source on GitHub ↗

Generate a short hash from the project path for Docker volume naming. Returns: 8-character hex hash of the path

(self)

Source from the content-addressed store, hash-verified

423 return False
424
425 def _get_project_hash(self) -> str:
426 """Generate a short hash from the project path for Docker volume naming.
427
428 Returns:
429 8-character hex hash of the path
430 """
431 # Normalize path (resolve symlinks, convert to absolute)
432 normalized_path = str(Path.cwd().resolve()).lower()
433 # Use SHA256 and take first 8 characters
434 return hashlib.sha256(normalized_path.encode()).hexdigest()[:8]
435
436 def ensure_docker_running(self) -> bool:
437 """Ensure Docker is running if Docker mode is enabled.

Callers 2

run_benchmarkMethod · 0.95
run_callgrindMethod · 0.95

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected