diff --git a/.claude/commands/precommit.md b/.claude/commands/precommit.md new file mode 100644 index 0000000..88d5468 --- /dev/null +++ b/.claude/commands/precommit.md @@ -0,0 +1,8 @@ +Run the pre-commit checklist for this project: + +1. Remind me to update `CHANGELOG.md` `[Unreleased]` section (Added / Changed / Fixed / Removed) — I must do this manually. +2. Run `uv run flake8 .` — must pass. +3. Run `uv run black --check .` — must pass (run `uv run black .` to auto-fix). +4. Run `uv run pytest --cov=./ --cov-report=term` — all tests must pass, coverage must be ≥80%. + +Run steps 2–4, report the results clearly, then propose a branch name and commit message for my approval using the format `type(scope): description (#issue)` (max 80 chars; types: `feat` `fix` `chore` `docs` `test` `refactor` `ci` `perf`). Do not create the branch or commit until I explicitly confirm. diff --git a/.claude/settings.json b/.claude/settings.json index 93a440a..852ff37 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -1,10 +1,7 @@ { - "model": "claude-sonnet-4-6", "permissions": { "allow": [ - "Bash(gh issue:*)", - "Bash(gh auth:*)", - "Bash(uv run:*)", + "Bash(uv run *)", "Bash(source .venv/bin/activate)", "WebFetch(domain:github.com)", "WebFetch(domain:api.github.com)" diff --git a/.vscode/extensions.json b/.vscode/extensions.json index dba7a80..2585acf 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,7 +4,7 @@ "ms-python.python", // Python language support // AI Assistance - "github.copilot-chat", // GitHub Copilot Chat - AI-powered coding assistant + "anthropic.claude-code", // Claude Code - AI-powered coding assistant "coderabbit.coderabbit-vscode", // CodeRabbit - AI-powered code review // Code Quality @@ -46,6 +46,6 @@ "unwantedRecommendations": [ "ms-azuretools.vscode-docker", // Docker (legacy) - Use vscode-containers instead "docker.docker", // Docker DX - Use ms-azuretools.vscode-containers - "github.copilot" // Copilot (base) - Unified into copilot-chat + "github.copilot" // GitHub Copilot - legacy base extension ] } diff --git a/CLAUDE.md b/CLAUDE.md index a7e292c..7d3153d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,7 @@ # CLAUDE.md @.github/copilot-instructions.md + +## Claude Code + +- Run `/precommit` to execute the full pre-commit checklist for this project.