Skip to content

Commit 3da5d01

Browse files
committed
Fix pre-commit
1 parent 0d43605 commit 3da5d01

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

codeclash/cli/ladder.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,11 @@ def _resolve_ladder_rules(ladder_rules: dict, rounds: int) -> tuple[float, int]:
3333
raise typer.Exit(1)
3434
if win_last_k < 1:
3535
typer.echo(
36-
f"ladder_rules.win_last_k must be >= 1, got {win_last_k}. "
37-
"Use 1 to require winning only the final round."
36+
f"ladder_rules.win_last_k must be >= 1, got {win_last_k}. Use 1 to require winning only the final round."
3837
)
3938
raise typer.Exit(1)
4039
if win_last_k > rounds:
41-
typer.echo(
42-
f"ladder_rules.win_last_k ({win_last_k}) cannot exceed tournament.rounds ({rounds})."
43-
)
40+
typer.echo(f"ladder_rules.win_last_k ({win_last_k}) cannot exceed tournament.rounds ({rounds}).")
4441
raise typer.Exit(1)
4542

4643
# min_round_win_fraction: player must win strictly more than this fraction of rounds.
@@ -56,6 +53,7 @@ def _resolve_ladder_rules(ladder_rules: dict, rounds: int) -> tuple[float, int]:
5653

5754
return float(min_round_win_fraction), win_last_k
5855

56+
5957
ladder_app = typer.Typer(
6058
no_args_is_help=True,
6159
add_completion=False,

configs/ablations/ladder/battlesnake_llama_smoke.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,3 @@ prompts:
2828
ladder:
2929
- {agent: dummy, name: pinky, branch_init: human/moxuz/pinky-snek} # simple heuristic (port)
3030
- {agent: dummy, name: tr8r, branch_init: human/noahspriggs/tr-8r} # 2016 winner (port)
31-

0 commit comments

Comments
 (0)