Skip to content

Commit c307a90

Browse files
committed
fix format
1 parent 2ee3378 commit c307a90

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

commit0/harness/spec.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def make_repo_script_list(instance: RepoInstance, repo_directory: str) -> list[s
9898
repo = instance["repo"]
9999
env_setup_commit = instance["reference_commit"]
100100
base_commit = instance["base_commit"]
101-
if float(specs['python']) < 3.7:
102-
specs['python'] = 3.7
101+
if float(specs["python"]) < 3.7:
102+
specs["python"] = 3.7
103103

104104
setup_commands = [
105105
f"git clone -o origin https://github.com/{repo} {repo_directory}",
@@ -142,7 +142,9 @@ def make_repo_script_list(instance: RepoInstance, repo_directory: str) -> list[s
142142
cmd = f"uv pip install {specs['packages']}"
143143
setup_commands.append(cmd)
144144
else:
145-
raise TypeError(f"{specs['packages']} has a type other than string and list so couldn't be parsed.")
145+
raise TypeError(
146+
f"{specs['packages']} has a type other than string and list so couldn't be parsed."
147+
)
146148

147149
# Install additional packages if specified
148150
if "pip_packages" in specs and specs["pip_packages"] is not None:

0 commit comments

Comments
 (0)