Skip to content

Commit 07a5c0b

Browse files
nanotaboadaclaude
andcommitted
chore(claude): improve Claude Code integration
- Add Claude Code section to CLAUDE.md pointing to /precommit - Update .claude/settings.json: move model to user-level, normalize uv run permission, remove redundant gh entries - Add .claude/commands/precommit.md with full pre-commit checklist - Replace github.copilot-chat with anthropic.claude-code in extensions.json Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf4b80b commit 07a5c0b

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

.claude/commands/precommit.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Run the pre-commit checklist for this project:
2+
3+
1. Remind me to update `CHANGELOG.md` `[Unreleased]` section (Added / Changed / Fixed / Removed) — I must do this manually.
4+
2. Run `uv run flake8 .` — must pass.
5+
3. Run `uv run black --check .` — must pass (run `uv run black .` to auto-fix).
6+
4. Run `uv run pytest` — all tests must pass.
7+
5. Run `uv run pytest --cov=./ --cov-report=term` — coverage must be ≥80%.
8+
9+
Run steps 2–5, 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.

.claude/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
2-
"model": "claude-sonnet-4-6",
32
"permissions": {
43
"allow": [
5-
"Bash(gh issue:*)",
6-
"Bash(gh auth:*)",
7-
"Bash(uv run:*)",
4+
"Bash(uv run *)",
85
"Bash(source .venv/bin/activate)",
96
"WebFetch(domain:github.com)",
107
"WebFetch(domain:api.github.com)"

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"ms-python.python", // Python language support
55

66
// AI Assistance
7-
"github.copilot-chat", // GitHub Copilot Chat - AI-powered coding assistant
7+
"anthropic.claude-code", // Claude Code - AI-powered coding assistant
88
"coderabbit.coderabbit-vscode", // CodeRabbit - AI-powered code review
99

1010
// Code Quality

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# CLAUDE.md
22

33
@.github/copilot-instructions.md
4+
5+
## Claude Code
6+
7+
- Run `/precommit` to execute the full pre-commit checklist for this project.

0 commit comments

Comments
 (0)