Skip to content

Commit dc89130

Browse files
committed
style(ci): fix remaining Black formatting violations
1 parent c338193 commit dc89130

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.github/scripts/validate_backend_bench.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,13 @@ def gh_api(path: str, token: str | None = None) -> dict:
7171
return json.loads(r.read())
7272

7373

74-
def resolve_latest_version(repo: str, token: str | None, tag_prefix: str = "",
75-
pinned: str = "", fallback: str = "") -> str:
74+
def resolve_latest_version(
75+
repo: str,
76+
token: str | None,
77+
tag_prefix: str = "",
78+
pinned: str = "",
79+
fallback: str = "",
80+
) -> str:
7681
if pinned:
7782
return pinned
7883
if tag_prefix:
@@ -97,11 +102,15 @@ def resolve_latest_version(repo: str, token: str | None, tag_prefix: str = "",
97102
return tag
98103
except Exception as e:
99104
if fallback:
100-
print(f" [WARN] Could not resolve latest release for {repo} ({e}); using fallback {fallback}")
105+
print(
106+
f" [WARN] Could not resolve latest release for {repo} ({e}); using fallback {fallback}"
107+
)
101108
return fallback
102109
raise
103110
if fallback:
104-
print(f" [WARN] No suitable release found for {repo}; using fallback {fallback}")
111+
print(
112+
f" [WARN] No suitable release found for {repo}; using fallback {fallback}"
113+
)
105114
return fallback
106115
raise RuntimeError(f"No suitable release found for {repo}")
107116

0 commit comments

Comments
 (0)