Skip to content

Commit 9096fa8

Browse files
ruff format
1 parent c4887d4 commit 9096fa8

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

commit0/harness/execution_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def exec_run_with_timeout(self, command: str) -> tuple[str, bool, float]:
269269
for fname in self.files_to_collect:
270270
with (self.log_dir / fname).open("w") as f:
271271
f.write(self.sb.files.read(f"testbed/{fname}"))
272-
timed_out = False # TODO: figure this out
272+
timed_out = False # TODO: figure this out
273273
end_time = time.time()
274274
return result.stderr, timed_out, end_time - start_time
275275

commit0/harness/run_pytest_ids.py

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,14 @@ def main(
205205
)
206206

207207
files_to_copy = Files(
208-
eval_script={"src": eval_file, "dest": Path("/eval.sh" if absolute else "eval.sh")},
209-
patch={"src": patch_file, "dest": Path("/patch.diff" if absolute else "patch.diff")},
208+
eval_script={
209+
"src": eval_file,
210+
"dest": Path("/eval.sh" if absolute else "eval.sh"),
211+
},
212+
patch={
213+
"src": patch_file,
214+
"dest": Path("/patch.diff" if absolute else "patch.diff"),
215+
},
210216
)
211217
files_to_collect = [
212218
"report.json",
@@ -216,8 +222,11 @@ def main(
216222
if coverage:
217223
files_to_collect.append("coverage.json")
218224

219-
220-
eval_command = "/bin/bash /eval.sh" if ExecutionBackend(backend) != ExecutionBackend.E2B else "/bin/bash eval.sh"
225+
eval_command = (
226+
"/bin/bash /eval.sh"
227+
if ExecutionBackend(backend) != ExecutionBackend.E2B
228+
else "/bin/bash eval.sh"
229+
)
221230
try:
222231
with execution_context(
223232
spec,

commit0/harness/spec.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,9 @@ def get_specs_from_dataset(
323323
)
324324

325325

326-
def make_spec(instance: Union[RepoInstance, SimpleInstance], dataset_type: str, absolute: bool) -> Spec:
326+
def make_spec(
327+
instance: Union[RepoInstance, SimpleInstance], dataset_type: str, absolute: bool
328+
) -> Spec:
327329
repo_directory = ABSOLUTE_REPO_DIR if absolute else RELATIVE_REPO_DIR
328330
if isinstance(instance, Spec):
329331
return instance

0 commit comments

Comments
 (0)