Get unique volume names based on project path. Args: project_root: Path to the project root Returns: VolumeNames with venv_volume, build_volume, and cache_volume names
(project_root: Path)
| 70 | |
| 71 | |
| 72 | def _get_volume_names(project_root: Path) -> VolumeNames: |
| 73 | """Get unique volume names based on project path. |
| 74 | |
| 75 | Args: |
| 76 | project_root: Path to the project root |
| 77 | |
| 78 | Returns: |
| 79 | VolumeNames with venv_volume, build_volume, and cache_volume names |
| 80 | """ |
| 81 | path_hash = _get_path_hash(project_root) |
| 82 | return VolumeNames( |
| 83 | venv_volume=f"fastled-docker-venv-{path_hash}", |
| 84 | build_volume=f"fastled-docker-build-{path_hash}", |
| 85 | cache_volume=f"fastled-docker-cache-{path_hash}", |
| 86 | ) |
| 87 | |
| 88 | |
| 89 | def _check_docker_available() -> bool: |
no test coverage detected