mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-09-19 08:09:48 +08:00
5305754f0b
- 后端按 Google Python Style Guide 重构注释,修复 ruff 和 pyright 错误(161→0) - 前端按 Vue.js Style Guide 重构注释,修复 biome 错误 - 添加 PostToolUse lint hook(ruff + biome 自动检查) - 更新 CLAUDE.md 覆盖 Commands/Testing/Structure/CodeStyle/GitWorkflow/Boundaries - 修复 tsconfig.json 废弃的 baseUrl 配置
31 lines
884 B
JSON
31 lines
884 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(powershell -Command \"\\(Get-ChildItem -Path 'frontend\\\\src' -Recurse -Filter '*.vue'\\).Count\")",
|
|
"Bash(powershell -Command \"\\(Get-ChildItem -Path 'frontend\\\\src' -Recurse -Filter '*.ts'\\).Count\")",
|
|
"Bash(powershell *)",
|
|
"Bash(.\\\\backend\\\\.venv\\\\Scripts\\\\python.exe -m ruff check backend/app/)",
|
|
"Bash(npx biome *)",
|
|
"Bash(git checkout *)",
|
|
"Bash(git add *)",
|
|
"Bash(git commit -m ' *)"
|
|
]
|
|
},
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Edit|Write",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"shell": "bash",
|
|
"command": "bash \"$(git rev-parse --show-toplevel)/.claude/hook_lint.sh\"",
|
|
"timeout": 180,
|
|
"statusMessage": "Running lint checks..."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|