{
  "hooks": {
    "PreCommit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "python -m pytest --tb=short -q && ruff check src/ && bash scripts/check-architecture.sh"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "Edit",
        "hooks": [
          {
            "type": "notification",
            "message": "提醒：如果修改了核心逻辑，请确认已先写了对应的测试用例（TDD 工作流）。"
          }
        ]
      }
    ]
  }
}
