Skip to content

Commit 61db331

Browse files
committed
chore: add python-claude
1 parent b0f8a98 commit 61db331

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

.claude/settings.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
{
22
"hooks": {
3+
"SessionStart": [
4+
{
5+
"hooks": [
6+
{
7+
"type": "command",
8+
"command": "poetry run python-claude session start"
9+
},
10+
{
11+
"type": "command",
12+
"command": "poetry run python-claude git status"
13+
}
14+
]
15+
}
16+
],
17+
"Stop": [
18+
{
19+
"hooks": [
20+
{
21+
"type": "command",
22+
"command": "poetry run python-claude ruff check"
23+
},
24+
{
25+
"type": "command",
26+
"command": "poetry run python-claude pytest"
27+
}
28+
]
29+
}
30+
],
331
"PostToolUse": [
432
{
5-
"matcher": "Write|Edit|MultiEdit",
33+
"matcher": "Write|Edit",
634
"hooks": [
735
{
836
"type": "command",
9-
"command": "jq -r .tool_input.file_path | { read file_path; if echo \"$file_path\" | grep -qE \"\\.(py)$\"; then scripts/lint.sh \"$file_path\"; fi; }"
37+
"command": "poetry run python-claude ruff format"
38+
},
39+
{
40+
"type": "command",
41+
"command": "poetry run python-claude edited"
42+
},
43+
{
44+
"type": "command",
45+
"command": "poetry run python-claude mypy"
1046
}
1147
]
1248
}

poetry.lock

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ packages = [{ include = "cvec", from = "src" }]
1818
pytest = "^8.3.5"
1919
mypy = "^1.15.0"
2020
ruff = "^0.11.10"
21+
python-claude = "^0.1.0"
2122

2223
[build-system]
2324
requires = ["poetry-core>=2.0.0,<3.0.0"]

0 commit comments

Comments
 (0)