Skip to content

Commit 1df776e

Browse files
committed
Style over substance.
1 parent a52d41e commit 1df776e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

sotabenchapi/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def build_get(self, repository: str, run_number: int):
208208
# Benchmark
209209
def benchmark_list(self):
210210
"""List users benchmarks."""
211-
return self.http.get(f"benchmarks/")
211+
return self.http.get("benchmarks/")
212212

213213
def benchmark_get(self, benchmark: str):
214214
"""Get benchmark.

sotabenchapi/commands/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def wrapper(*args, **kwargs):
3333
def check_repo(repository: str):
3434
parts = repository.split("/")
3535
if len(parts) != 2:
36-
click.secho(f"Invalid repository name: ", fg="red", nl=False)
36+
click.secho("Invalid repository name: ", fg="red", nl=False)
3737
click.secho(repository)
3838
click.secho(
3939
"Repository name must be in owner/project format.", fg="cyan"

sotabenchapi/http.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def __init__(
4646
timeout (int): Request timeout time.
4747
max_retries (int): Maximal number of retries.
4848
backoff_factor (float): Backoff factor.
49+
backoff_max (int): Maximal number of backoffs.
4950
status_forcelist (tuple of int): Tuple of HTTP statuses for
5051
which the service should retry.
5152
"""
@@ -137,7 +138,7 @@ def request(
137138
raise HttpClientTimeout() from e
138139

139140
except ConnectionError as e:
140-
raise HttpClientError(f"SotaBench server not reachable.") from e
141+
raise HttpClientError("SotaBench server not reachable.") from e
141142

142143
except Exception as e:
143144
raise HttpClientError(f"Unknown error. {e!r}") from e

0 commit comments

Comments
 (0)