Skip to content

Commit 7fcc206

Browse files
authored
Run repo-wide pre-commit cleanup
1 parent 3718423 commit 7fcc206

16 files changed

Lines changed: 472 additions & 460 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ GITHUB_TOKEN=your_github_token_here
66

77
# Optional: LLM Provider API Keys (configure the ones you plan to use)
88
OPENAI_API_KEY=
9-
ANTHROPIC_API_KEY=
9+
ANTHROPIC_API_KEY=

.github/workflows/pre-commit.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pre-commit
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: "3.11"
18+
- name: Install uv
19+
run: curl -LsSf https://astral.sh/uv/install.sh | sh
20+
- name: Install dependencies
21+
run: uv sync --extra dev
22+
- name: Run pre-commit
23+
run: uv run pre-commit run --all-files --show-diff-on-failure

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
- id: debug-statements
1616

1717
- repo: https://github.com/crate-ci/typos
18-
rev: v1
18+
rev: v1.46.0
1919
hooks:
2020
- id: typos
2121
files: \.(py|md|rst|yaml|toml)

codeclash/analysis/llm_as_judge/hallucination.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ system_prompt: |
7171
by reasoning)
7272
- "My bot is working perfectly" (this is just a slightly overconfident statement, but not a concrete claim that can be corroborated or disproven)
7373
This violates 2 (the statement of fact is not concrete)
74-
- Agent using an incorrect linenumber when referring to a code snippet (as long as the agent recovers later on and this doens't cause an edit to
74+
- Agent using an incorrect linenumber when referring to a code snippet (as long as the agent recovers later on and this doesn't cause an edit to
7575
fail without being able to recover). This violates 6 (the incident is not relevant to the overall trajectory and objective of the agent)
7676
- Anything related to failed edits as long as the failure is spotted and corrected later on.
7777

codeclash/arenas/battlecode23/BattleCode23.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ RUN git clone https://github.com/CodeClash-ai/BattleCode2023.git /workspace \
1111
WORKDIR /workspace
1212

1313
RUN chmod +x gradlew && ./gradlew update
14-

0 commit comments

Comments
 (0)