Skip to content

Commit 3b7f0f1

Browse files
committed
rename to be more accurate
1 parent 00588e1 commit 3b7f0f1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ci/tools/check_pixi_cuda_version.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
import yaml
1313

1414
ROOT = Path(__file__).resolve().parents[2]
15-
VERSIONS = ROOT / "ci" / "versions.yml"
15+
VERSIONS_FILE_PATH = ROOT / "ci" / "versions.yml"
1616
PIXI_FILES = [ROOT / d / "pixi.toml" for d in ("cuda_bindings", "cuda_core")]
1717

1818

1919
def main() -> int:
20-
if not VERSIONS.is_file():
21-
print(f"error: {VERSIONS} not found", file=sys.stderr)
20+
if not VERSIONS_FILE_PATH.is_file():
21+
print(f"error: {VERSIONS_FILE_PATH} not found", file=sys.stderr)
2222
return 2
2323
try:
24-
build_version = yaml.safe_load(VERSIONS.read_text(encoding="utf-8"))["cuda"]["build"]["version"]
24+
build_version = yaml.safe_load(VERSIONS_FILE_PATH.read_text(encoding="utf-8"))["cuda"]["build"]["version"]
2525
except (KeyError, TypeError):
26-
print(f"error: cuda.build.version not found in {VERSIONS}", file=sys.stderr)
26+
print(f"error: cuda.build.version not found in {VERSIONS_FILE_PATH}", file=sys.stderr)
2727
return 2
2828

2929
major, minor, *_ = build_version.split(".")

0 commit comments

Comments
 (0)