Skip to content

Commit ec0eed3

Browse files
committed
Lint
1 parent 09760ca commit ec0eed3

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

bench_runner/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def clone(
138138
url: str,
139139
*,
140140
branch: str | None = None,
141-
depth: int = 1,
141+
depth: int | None = 1,
142142
) -> None:
143143
is_hash = re.match(r"^[0-9a-f]{40}$", branch) if branch else False
144144

bench_runner/scripts/bisect.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def delete_log() -> None:
8383

8484

8585
def show_log() -> None:
86-
bisect_log = get_log_file()
87-
8886
print()
8987
print("Bisect log:")
9088

bench_runner/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ def get_simple_platform() -> Literal["linux", "macos", "windows"]:
8989

9090
def format_seconds(value: float) -> str:
9191
"""
92-
Given a float value in seconds, formats it into a human-readable string with the appropriate precision.
92+
Given a float value in seconds, formats it into a human-readable string with
93+
the appropriate precision.
9394
"""
9495
_TIMEDELTA_UNITS = ("sec", "ms", "us", "ns")
9596

0 commit comments

Comments
 (0)