@@ -283,14 +283,16 @@ def format_table(self) -> str:
283283 )
284284 )
285285
286- col_widths = [
287- max (len (row [i ]) for row in rows ) for i in range (len (rows [0 ]))
288- ]
286+ col_widths = [max (len (row [i ]) for row in rows ) for i in range (len (rows [0 ]))]
289287 sep = "+-" + "-+-" .join ("-" * w for w in col_widths ) + "-+"
290288
291289 lines = ["Benchmark Results:" , sep ]
292290 for i , row in enumerate (rows ):
293- line = "| " + " | " .join (cell .ljust (col_widths [j ]) for j , cell in enumerate (row )) + " |"
291+ line = (
292+ "| "
293+ + " | " .join (cell .ljust (col_widths [j ]) for j , cell in enumerate (row ))
294+ + " |"
295+ )
294296 lines .append (line )
295297 if i == 0 :
296298 lines .append (sep )
@@ -322,9 +324,7 @@ def collect_metrics(
322324 sample = RawSample .from_pipeline_statistics (stats )
323325 samples .append (sample )
324326
325- logger .info (
326- "Collected metrics at %.1fs" , time .monotonic () - loop_start
327- )
327+ logger .info ("Collected metrics at %.1fs" , time .monotonic () - loop_start )
328328
329329 # Validate incarnation UUID consistency
330330 if first_uuid is None :
@@ -344,9 +344,7 @@ def collect_metrics(
344344
345345 # Stop when duration limit reached
346346 if duration_secs is not None and time .monotonic () - loop_start >= duration_secs :
347- logger .info (
348- "Reached duration limit of %.1fs." , duration_secs
349- )
347+ logger .info ("Reached duration limit of %.1fs." , duration_secs )
350348 break
351349
352350 time .sleep (1 )
@@ -436,7 +434,9 @@ def upload_to_bencher(
436434 :raises ValueError: If *project* is ``None`` and ``BENCHER_PROJECT`` is not set.
437435 :raises RuntimeError: If the server returns a non-2xx status code.
438436 """
439- resolved_host = host or os .environ .get ("BENCHER_HOST" ) or "https://benchmarks.feldera.io"
437+ resolved_host = (
438+ host or os .environ .get ("BENCHER_HOST" ) or "https://benchmarks.feldera.io"
439+ )
440440 resolved_token = token or os .environ .get ("BENCHER_API_TOKEN" )
441441 resolved_project = project or os .environ .get ("BENCHER_PROJECT" )
442442
0 commit comments