Skip to content

Commit 79876a7

Browse files
committed
fix pre-commit
1 parent 26756f0 commit 79876a7

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ repos:
1212

1313
- repo: local
1414
hooks:
15+
- id: ruff-check-fix
16+
name: ruff check --fix
17+
entry: uv run --extra dev ruff check --fix
18+
language: system
19+
pass_filenames: false
20+
stages: [pre-commit]
1521
- id: check-coverage
1622
name: check coverage thresholds for major changes
1723
entry: python3.11 scripts/run_if_major_change.py --stage pre-commit -- make check-coverage

docs/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ uv run --extra docs --extra pydantic --extra codex mkdocs build --strict
8383

8484
ACP Kit keeps lightweight config hooks on every commit, and only runs expensive validation when the staged change set looks major.
8585

86-
- always on `pre-commit`: YAML and TOML validation
86+
- always on `pre-commit`: `uv run --extra dev ruff check --fix`, YAML validation, and TOML validation
8787
- conditional on `pre-commit`: `make check-coverage` and `make prod`
8888
- the heavy hooks run only when staged files touch core code, tests, scripts, workflows, or tool config
8989

packages/adapters/pydantic-acp/src/pydantic_acp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
from .builders import AgentBridgeBuilder, AgentBridgeContributions
1919
from .config import AdapterConfig
2020
from .hook_projection import HookEvent, HookProjectionMap
21-
from .runtime.hook_introspection import RegisteredHookInfo, list_agent_hooks
2221
from .host import (
2322
ClientFilesystemBackend,
2423
ClientHostContext,
@@ -44,6 +43,7 @@
4443
SessionModelsProvider,
4544
SessionModesProvider,
4645
)
46+
from .runtime.hook_introspection import RegisteredHookInfo, list_agent_hooks
4747
from .runtime.server import create_acp_agent, run_acp
4848
from .session.state import AcpSessionContext, JsonValue
4949
from .session.store import FileSessionStore, MemorySessionStore, SessionStore

0 commit comments

Comments
 (0)