Skip to content

Commit 96f96ee

Browse files
committed
merge w main
2 parents 8d710f7 + ec4d95a commit 96f96ee

File tree

1,028 files changed

+1687
-792
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,028 files changed

+1687
-792
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

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Updates
2+
#### Sep 28, 2024:
3+
If you want to use agent with the OpenAI o1 models, please run these installation commands to update packages ``pip install git+https://github.com/wenting-zhao/aider.git``.
4+
5+
---
6+
17
# Commit0
28

39
<a href="https://commit-0.github.io/">Commit0</a> is a from scratch AI coding challenge. Can you create a library from commit 0?
@@ -48,7 +54,7 @@ Available options include:
4854
| `--dataset-name` | str | Name of the Huggingface dataset | `wentingzhao/commit0_combined` |
4955
| `--dataset-split` | str | Split of the Huggingface dataset | `test` |
5056
| `--base-dir` | str | Base directory to clone repos to | `repos/` |
51-
| `--commit0-dot-file-path` | str | Storing path for stateful commit0 configs | `.commit0.yaml` |
57+
| `--commit0-config-file` | str | Storing path for stateful commit0 configs | `.commit0.yaml` |
5258

5359
### Build
5460

@@ -58,7 +64,7 @@ Available options include:
5864
| Argument | Type | Description | Default |
5965
|----------|------|-------------|---------|
6066
| `--num-workers` | int | Number of workers | `8` |
61-
| `--commit0-dot-file-path` | str | Path to the commit0 dot file | `.commit0.yaml` |
67+
| `--commit0-config-file` | str | Path to the commit0 dot file | `.commit0.yaml` |
6268
| `--verbose` | int | Verbosity level (1 or 2) | `1` |
6369

6470
### Get Tests
@@ -85,7 +91,7 @@ Available options include:
8591
| `--reference` | bool | Test the reference commit | `False` |
8692
| `--coverage` | bool | Get coverage information | `False` |
8793
| `--rebuild` | bool | Rebuild an image | `False` |
88-
| `--commit0-dot-file-path` | str | Path to the commit0 dot file | `.commit0.yaml` |
94+
| `--commit0-config-file` | str | Path to the commit0 dot file | `.commit0.yaml` |
8995
| `--verbose` | int | Verbosity level (1 or 2) | `1` |
9096
| `--stdin` | bool | Read test names from stdin | `False` |
9197

@@ -103,7 +109,7 @@ Available options include:
103109
| `--num-workers` | int | Number of workers to use | `8` |
104110
| `--reference` | bool | Evaluate the reference commit | `False` |
105111
| `--coverage` | bool | Get coverage information | `False` |
106-
| `--commit0-dot-file-path` | str | Path to the commit0 dot file | `.commit0.yaml` |
112+
| `--commit0-config-file` | str | Path to the commit0 dot file | `.commit0.yaml` |
107113
| `--rebuild` | bool | Rebuild images | `False` |
108114

109115
### Lint
@@ -115,7 +121,7 @@ Available options include:
115121
|----------|------|-------------|---------|
116122
| `repo_or_repo_dir` | str | Directory of the repository to test | |
117123
| `--files` | List[Path] | Files to lint (optional) | |
118-
| `--commit0-dot-file-path` | str | Path to the commit0 dot file | `.commit0.yaml` |
124+
| `--commit0-config-file` | str | Path to the commit0 dot file | `.commit0.yaml` |
119125
| `--verbose` | int | Verbosity level (1 or 2) | `1` |
120126

121127
### Save
@@ -128,7 +134,7 @@ Available options include:
128134
| `owner` | str | Owner of the repository | |
129135
| `branch` | str | Branch to save | |
130136
| `--github-token` | str | GitHub token for authentication | |
131-
| `--commit0-dot-file-path` | str | Path to the commit0 dot file | `.commit0.yaml` |
137+
| `--commit0-config-file` | str | Path to the commit0 dot file | `.commit0.yaml` |
132138

133139
## Agent
134140

agent/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Available options include:
3838
`--max-lint-info-length: int`: Maximum length of the lint information to use. [Default: `10000`]
3939
`--pre-commit-config-path: str`: Path to the pre-commit config file. This is needed for running `lint`. [Default: `.pre-commit-config.yaml`]
4040
`--agent-config-file: str`: Path to write the agent config. [Default: `.agent.yaml`]
41+
`--add-import-module-to-context: bool`: Add import module to context. [Default: `False`]
42+
`--record-test-for-each-commit: bool`: Record test results for each commit. [Default: `False`], if set to `True`, the test results will be saved in `experiment_log_dir/eval_results.json`
4143

4244
## Running Agent
4345
Use `agent run [OPTIONS] BRANCH` to execute an agent on a specific branch.

0 commit comments

Comments
 (0)