{ "hooks": { "Stop": [ { "matcher": "", "hooks": [ { "type": "command", "command": "cd \"$CLAUDE_PROJECT_DIR\" && if [ -x .venv/bin/python ]; then PY=.venv/bin/python; else PY=python3; fi; \"$PY\" -m pytest -q" } ] } ] } }