Skip to content

Commit b4c2757

Browse files
committed
ruff format
1 parent 3c61332 commit b4c2757

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

make.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,20 @@ def run(args: str | list[str], cd: PathLike | None = None) -> None:
151151
result = subprocess.run(args)
152152
else:
153153
result = subprocess.run(args)
154-
154+
155155
elapsed_time = time.perf_counter() - start_time
156156
h, rem = divmod(elapsed_time, 3600)
157157
m, s = divmod(rem, 60)
158-
159-
time_str = " ".join(part for part in [
160-
f"{int(h)}h" if h >= 1 else "",
161-
f"{int(m)}m" if m >= 1 or h >= 1 else "",
162-
f"{int(s)}s"
163-
] if part)
158+
159+
time_str = " ".join(
160+
part
161+
for part in [
162+
f"{int(h)}h" if h >= 1 else "",
163+
f"{int(m)}m" if m >= 1 or h >= 1 else "",
164+
f"{int(s)}s",
165+
]
166+
if part
167+
)
164168

165169
print(f">> Command finished ({time_str}): {cmd} \n")
166170

0 commit comments

Comments
 (0)