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

Function _get_volume_names

ci/runners/docker_runner.py:72–86  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

70
71
72def _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
89def _check_docker_available() -> bool:

Callers 1

run_docker_testsFunction · 0.85

Calls 2

_get_path_hashFunction · 0.85
VolumeNamesClass · 0.85

Tested by

no test coverage detected