Skip to content

Commit c338193

Browse files
committed
style(ci): apply Black formatting to validate_backend_bench.py
1 parent ae8b7d0 commit c338193

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

.github/scripts/validate_backend_bench.py

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ def run_bench(
359359
print(f" cmd: {' '.join(cmd)}")
360360
recipe = fork.get("recipe", "llamacpp")
361361
cfg_section = fork.get("config_section", recipe)
362-
print(f" backend key: {bench_as} (binary routed via {cfg_section}.{bench_as}_bin)")
362+
print(
363+
f" backend key: {bench_as} (binary routed via {cfg_section}.{bench_as}_bin)"
364+
)
363365

364366
if dry_run:
365367
print(" [dry-run] skipping execution")
@@ -620,9 +622,15 @@ def main() -> int:
620622
print(f"Downloading binary for {fork_id}...")
621623
try:
622624
tag_prefix = fork.get("version_tag_prefix", "")
623-
pinned = fork.get("version", "") if fork.get("version_source") == "pinned" else ""
625+
pinned = (
626+
fork.get("version", "")
627+
if fork.get("version_source") == "pinned"
628+
else ""
629+
)
624630
fallback = fork.get("version_fallback", "")
625-
version = resolve_latest_version(fork["repo"], args.token, tag_prefix, pinned, fallback)
631+
version = resolve_latest_version(
632+
fork["repo"], args.token, tag_prefix, pinned, fallback
633+
)
626634
install_fork_binary(
627635
fork, version, binaries_dir, args.token, args.dry_run
628636
)
@@ -646,8 +654,14 @@ def main() -> int:
646654

647655
try:
648656
tag_prefix = fork.get("version_tag_prefix", "")
649-
pinned = fork.get("version", "") if fork.get("version_source") == "pinned" else ""
650-
version = resolve_latest_version(fork["repo"], args.token, tag_prefix, pinned)
657+
pinned = (
658+
fork.get("version", "")
659+
if fork.get("version_source") == "pinned"
660+
else ""
661+
)
662+
version = resolve_latest_version(
663+
fork["repo"], args.token, tag_prefix, pinned
664+
)
651665
print(f"Version: {version}")
652666
except Exception as e:
653667
print(f" [ERROR] Could not resolve version: {e}")

0 commit comments

Comments
 (0)