Skip to content

Commit 3f0b56f

Browse files
authored
Merge branch 'main' into integration
2 parents 08b0524 + d9a9954 commit 3f0b56f

File tree

7 files changed

+420
-54
lines changed

7 files changed

+420
-54
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
run: uv venv --python 3.12
1717
- name: Install the project
18-
run: uv sync
18+
run: uv sync --extra agent
1919
- name: Install the project
2020
run: uv pip install pre-commit
2121
- name: PreCommit

.github/workflows/system.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Docker
1818
uses: docker/setup-buildx-action@v3
1919
- name: Install the project
20-
run: uv sync
20+
run: uv sync --extra agent
2121
- name: Set up commit0
2222
run: uv run commit0 setup simpy
2323
- name: Build docker images

commit0/harness/build.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ def main(
3939
specs.append(spec)
4040

4141
client = docker.from_env()
42-
build_repo_images(client, specs, dataset_type, num_workers, verbose)
43-
for spec in specs:
44-
image = client.images.get(spec.repo_image_key)
45-
repository, tag = spec.repo_image_tag.split(":")
46-
image.tag(repository, tag)
42+
build_repo_images(client, specs, num_workers, verbose)
4743

4844

4945
__all__ = []

commit0/harness/execution_context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import logging
1010
import modal
1111
import modal.io_streams
12-
from enum import StrEnum, auto
12+
from enum import auto
13+
from strenum import StrEnum
1314
from pathlib import Path
1415
import time
1516
from typing import Optional, Type
@@ -159,7 +160,7 @@ def __init__(
159160
files_to_collect=files_to_collect,
160161
)
161162

162-
self.app = modal.App()
163+
self.app = modal.App.lookup("commit0", create_if_missing=True)
163164

164165
# the image must exist on dockerhub
165166
reponame = spec.repo.split("/")[-1]

commit0/harness/run_pytest_ids.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def main(
136136
eval_file = Path(log_dir / "eval.sh")
137137
eval_file.write_text(eval_script)
138138

139+
backend = backend.upper()
139140
if ExecutionBackend(backend) == ExecutionBackend.MODAL:
140141
logger.info("Runnning on Modal")
141142
execution_context = Modal

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,22 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "commit0"
7-
version = "0.1.6"
7+
version = "0.1.8"
88
description = "A development and evaluation framework for using language models to generate libraries."
99
readme = "README.md"
10-
requires-python = ">=3.11"
10+
requires-python = ">=3.10"
1111
dependencies = [
1212
"ruff>=0.6.4",
1313
"pre-commit>=3.8.0",
14-
"import-deps>=0.3.0",
15-
"PyMuPDF>=1.24.5",
16-
"modal==0.64.95",
1714
"typer>=0.12.0",
18-
"tenacity>=8.5.0",
1915
"docker>=7.1.0",
2016
"fastcore>=1.7.8",
2117
"ghapi>=1.0.6",
2218
"gitpython>=3.1.43",
2319
"pytest>=8.3.3",
2420
"datasets==3.0.1",
25-
"aider-chat",
21+
"modal>=0.66.26",
22+
"strenum>=0.4.15",
2623
]
2724
classifiers = [
2825
"License :: OSI Approved :: MIT License",
@@ -36,7 +33,11 @@ agent = "agent.__main__:main"
3633
packages = ["commit0", "agent"]
3734

3835
[project.optional-dependencies]
39-
agent = []
36+
agent = [
37+
"import-deps>=0.3.0",
38+
"PyMuPDF>=1.24.5",
39+
"aider-chat",
40+
]
4041

4142
[project.urls]
4243
Homepage = "https://commit-0.github.io/"

uv.lock

Lines changed: 404 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)