mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-21 12:55:00 +00:00
no pretty during benchmarks
This commit is contained in:
parent
192a6de749
commit
7fc1bfd430
1 changed files with 5 additions and 5 deletions
|
@ -127,10 +127,10 @@ def run_test(testdir, model_name, edit_format, retries):
|
|||
if "test" not in fname and os.path.isfile(fname) and fname[0] != ".":
|
||||
fnames.append(fname)
|
||||
|
||||
filelist = " ".join(fnames)
|
||||
instructions = Path(".docs/instructions.md").read_text()
|
||||
instructions += (
|
||||
"\n\n=====\n\nModify these files according to the above instructions: " + " ".join(fnames)
|
||||
)
|
||||
instructions += "\n\n=====\n\nModify these files according to the above instructions: "
|
||||
instructions += filelist
|
||||
|
||||
io = InputOutput(
|
||||
pretty=True,
|
||||
|
@ -153,6 +153,7 @@ def run_test(testdir, model_name, edit_format, retries):
|
|||
# verbose=True,
|
||||
use_git=False,
|
||||
stream=False,
|
||||
pretty=False,
|
||||
)
|
||||
|
||||
dur = 0
|
||||
|
@ -174,8 +175,7 @@ def run_test(testdir, model_name, edit_format, retries):
|
|||
break
|
||||
|
||||
instructions = errors
|
||||
filelist = " ".join(fnames)
|
||||
instructions += f"\n\nFix the code in {filelist} to resolve the errors above."
|
||||
instructions += "\n\nFix the code to resolve the test failures above."
|
||||
|
||||
results = dict(
|
||||
testdir=str(testdir),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue