Skip to content

Commit aad73e5

Browse files
committed
polish to fix cosmetic
1 parent 8e99b0a commit aad73e5

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

ci/tools/check_pixi_cuda_version.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,20 @@ def main() -> int:
4444
variants = data["workspace"]["build-variants"]["cuda-version"]
4545
cuda_pin = data["feature"][cuda_feature]["dependencies"]["cuda-version"]
4646
except KeyError as exc:
47-
print(f"error: {rel} missing cuda-version key: {exc}", file=sys.stderr)
47+
print(
48+
f"error: {rel} missing feature {cuda_feature!r} or cuda-version key: {exc}",
49+
file=sys.stderr,
50+
)
4851
return 2
4952
if expected not in variants:
5053
errors.append(
51-
f"{rel}: [workspace.build-variants] cuda-version={variants!r} "
54+
f"{rel}: workspace.build-variants.cuda-version={variants!r} "
5255
f"does not include {expected!r} "
5356
f"(from ci/versions.yml cuda.build.version={build_version!r})"
5457
)
5558
if cuda_pin != expected:
5659
errors.append(
57-
f"{rel}: [feature.{cuda_feature}.dependencies] cuda-version={cuda_pin!r} "
60+
f"{rel}: feature.{cuda_feature}.dependencies.cuda-version={cuda_pin!r} "
5861
f"!= {expected!r} "
5962
f"(from ci/versions.yml cuda.build.version={build_version!r})"
6063
)

0 commit comments

Comments
 (0)