{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/ruff format src tests scripts 2>&1 | tail -3 && .\/scripts\/check.sh 2>&1 | grep -E \"(FAIL|broken|^==>)\" | head -15",
"description": "Format and rerun gates"
}
}
{
"tool_response": {
"stdout": "4 files reformatted, 105 files left unchanged\n==> G1 ruff\n==> G1 ruff format\n==> G1 mypy\n==> G1 radon cc\n==> G1 radon mi\n==> G1 max_loc\n==> G4 import-linter\nContracts: 3 kept, 0 broken.\n==> G2 pytest unit\n==> G5 pip-audit\n==> G6 schema-drift",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false,
"staleReadFileStateHint": "[This command modified 4 files you've previously read: tests\/unit\/application\/test_generate_crawl_report.py, tests\/unit\/application\/test_finalize_crawl.py, tests\/unit\/application\/test_check_external_link.py, tests\/unit\/application\/test_extract_seo_data.py. Call Read before editing.]"
}
}