Skip to content

Commit 0061739

Browse files
committed
chore: add mypy to pre-commit config and document setup
- Add mypy as a local pre-commit hook via prek (ruff-check + ruff-format + mypy now all run at commit time) - Add Setup section to CLAUDE.md with uv sync and prek install steps
1 parent e4b1fb8 commit 0061739

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
repos:
2-
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.15.8
4-
hooks:
5-
# Run the linter.
6-
- id: ruff-check
7-
# Run the formatter.
8-
- id: ruff-format
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.15.8
4+
hooks:
5+
- id: ruff-check
6+
- id: ruff-format
7+
8+
- repo: local
9+
hooks:
10+
- id: mypy
11+
name: mypy
12+
entry: uv run mypy --non-interactive --config-file pyproject.toml
13+
language: system
14+
types: [python]
15+
require_serial: true

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ Discovery -> Ranking -> Context Extraction -> Test Gen + Optimization -> Baselin
1212

1313
See `.claude/rules/architecture.md` for directory mapping and entry points.
1414

15+
## Setup
16+
17+
```bash
18+
uv sync # Install all dependencies
19+
uv run prek install # Install git pre-commit hooks (ruff + mypy)
20+
```
21+
1522
## Bug Fix Workflow
1623

1724
Follow these steps in order, do not skip ahead:

0 commit comments

Comments
 (0)