style: Apply linter formatting

This commit is contained in:
Paul Gauthier (aider) 2024-12-20 16:03:44 -08:00
parent e334cbb5d4
commit 8d0decc17a

View file

@ -196,7 +196,9 @@ def main(
False, "--stats", "-s", help="Do not run tests, just collect stats on completed tests"
),
stats_languages: str = typer.Option(
None, "--stats-languages", help="Only include stats for specific languages (comma separated)"
None,
"--stats-languages",
help="Only include stats for specific languages (comma separated)",
),
diffs_only: bool = typer.Option(False, "--diffs", help="Just diff the provided stats dirs"),
tries: int = typer.Option(2, "--tries", "-r", help="Number of tries for running tests"),
@ -661,9 +663,9 @@ def run_test_real(
if results_fname.exists():
try:
res = json.loads(results_fname.read_text())
#if res.get("test_timeouts", 0) > 0:
# if res.get("test_timeouts", 0) > 0:
# print(f"{results_fname} test timeouts, redoing...")
#else:
# else:
return res
except JSONDecodeError:
print(f"{results_fname} failed to parse, redoing...")