Generate a short hash from the project path for Docker volume naming. Returns: 8-character hex hash of the path
(self)
| 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. |
no test coverage detected