Skip to content

Commit 05d4d97

Browse files
committed
Use sys.executable instead of uv in ACP tests; protect typos config from self-rewrite
1 parent 652d223 commit 05d4d97

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ jobs:
8181
- name: Install ripgrep
8282
run: sudo apt-get update && sudo apt-get install -y ripgrep
8383

84-
- name: Install uv
85-
uses: astral-sh/setup-uv@v3
86-
8784
- name: Run tests
8885
run: pytest --ignore tests/snapshots
8986

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ repos:
3232
hooks:
3333
- id: typos
3434
args: [--write-changes]
35-
exclude: '__snapshots__/.*\.svg$|^(ACCESSIBILITE|ARCHITECTURE|COMMANDES|README|SECURITE)\.md$|^albert-code\.(sh|bat)$'
35+
exclude: '__snapshots__/.*\.svg$|^(ACCESSIBILITE|ARCHITECTURE|COMMANDES|README|SECURITE)\.md$|^albert-code\.(sh|bat)$|^\.pre-commit-config\.yaml$'

‎tests/acp/test_acp.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import json
66
import os
77
from pathlib import Path
8+
import sys
89
from typing import Any
910

1011
from acp import (
@@ -193,7 +194,7 @@ async def get_acp_agent_loop_process(
193194
mock_env: dict[str, str], vibe_home: Path
194195
) -> AsyncGenerator[asyncio.subprocess.Process]:
195196
current_env = os.environ.copy()
196-
cmd = ["uv", "run", MOCK_ENTRYPOINT_PATH]
197+
cmd = [sys.executable, MOCK_ENTRYPOINT_PATH]
197198

198199
env = dict(current_env)
199200
env.update(mock_env)

0 commit comments

Comments
 (0)