mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
style: fix linting issues in benchmark.py
This commit is contained in:
parent
351b8e50f0
commit
c5ce57ea7f
1 changed files with 4 additions and 2 deletions
|
@ -155,7 +155,9 @@ def main(
|
|||
tries: int = typer.Option(2, "--tries", "-r", help="Number of tries for running tests"),
|
||||
threads: int = typer.Option(1, "--threads", "-t", help="Number of threads to run in parallel"),
|
||||
num_tests: int = typer.Option(-1, "--num-tests", "-n", help="Number of tests to run"),
|
||||
num_ctx: Optional[int] = typer.Option(None, "--num-ctx", help="Override model context window size"),
|
||||
num_ctx: Optional[int] = typer.Option(
|
||||
None, "--num-ctx", help="Override model context window size"
|
||||
),
|
||||
exercises_dir: str = typer.Option(
|
||||
EXERCISES_DIR_DEFAULT, "--exercises-dir", help="Directory with exercise files"
|
||||
),
|
||||
|
@ -589,7 +591,7 @@ def run_test_real(
|
|||
editor_model=editor_model,
|
||||
editor_edit_format=editor_edit_format,
|
||||
)
|
||||
|
||||
|
||||
if num_ctx:
|
||||
if not main_model.extra_params:
|
||||
main_model.extra_params = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue