mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
style: run linter and fix code formatting issues
This commit is contained in:
parent
8d90df1ebc
commit
e21cdafb15
1 changed files with 2 additions and 4 deletions
|
@ -49,7 +49,7 @@ def find_latest_benchmark_dir():
|
||||||
|
|
||||||
latest_dir = max(
|
latest_dir = max(
|
||||||
benchmark_dirs,
|
benchmark_dirs,
|
||||||
key=lambda d: max(f.stat().st_mtime for f in d.rglob('*') if f.is_file()),
|
key=lambda d: max(f.stat().st_mtime for f in d.rglob("*") if f.is_file()),
|
||||||
)
|
)
|
||||||
print(f"Using the most recently updated benchmark directory: {latest_dir.name}")
|
print(f"Using the most recently updated benchmark directory: {latest_dir.name}")
|
||||||
return latest_dir
|
return latest_dir
|
||||||
|
@ -121,9 +121,7 @@ def resolve_dirname(dirname, use_single_prior, make_new):
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def main(
|
def main(
|
||||||
dirnames: Optional[List[str]] = typer.Argument(
|
dirnames: Optional[List[str]] = typer.Argument(None, help="Directory names"),
|
||||||
None, help="Directory names"
|
|
||||||
),
|
|
||||||
graphs: bool = typer.Option(False, "--graphs", help="Generate graphs"),
|
graphs: bool = typer.Option(False, "--graphs", help="Generate graphs"),
|
||||||
model: str = typer.Option("gpt-3.5-turbo", "--model", "-m", help="Model name"),
|
model: str = typer.Option("gpt-3.5-turbo", "--model", "-m", help="Model name"),
|
||||||
edit_format: str = typer.Option(None, "--edit-format", "-e", help="Edit format"),
|
edit_format: str = typer.Option(None, "--edit-format", "-e", help="Edit format"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue