{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/opt\/scripts\/python-check.sh 2>&1 | head -50",
"description": "Check Python full output"
}
}
{
"tool_response": {
"stdout": "=== Python Quality Check: Sat Dec 20 04:22:11 PM CET 2025 ===\nDirectory: \/opt\/scripts\/pipeline\n\n\u001b[1;33m[1\/3] Ruff - Linting\u001b[0m\nI001 [*] Import block is un-sorted or un-formatted\n --> \/opt\/scripts\/pipeline\/generate.py:12:1\n |\n10 | sys.path.insert(0, \"\/opt\/scripts\/pipeline\")\n11 |\n12 | \/ from config import ANTHROPIC_API_KEY, ANTHROPIC_MODEL, OLLAMA_CHAT_MODEL, OLLAMA_HOST\n13 | | from db import db\n14 | | from embed import search_similar\n | |________________________________^\n |\nhelp: Organize imports\n\nI001 [*] Import block is un-sorted or un-formatted\n --> \/opt\/scripts\/pipeline\/pipeline.py:14:1\n |\n12 | \"\"\"\n13 |\n14 | \/ import json\n15 | | import os\n16 | | import sys\n17 | | import time\n18 | | from pathlib import Path\n19 | |\n20 | | from analyze import analyze_document\n21 | | from chunk import chunk_by_structure\n22 | | from config import MAX_RETRIES, RETRY_BACKOFF_BASE\n23 | | from db import db\n24 | | from detect import queue_files, scan_directory\n25 | | from embed import embed_chunks, embed_pending_chunks\n26 | | from extract import extract, get_full_text\n | |__________________________________________^\n |\nhelp: Organize imports\n\nFound 2 errors.\n[*] 2 fixable with the `--fix` option.\n\u001b[0;31m✗ Ruff: Linting errors found\u001b[0m\n\n\u001b[1;33m[2\/3] Ruff - Format Check\u001b[0m\n15 files already formatted\n\u001b[0;32m✓ Ruff: Formatting OK\u001b[0m\n\n\u001b[1;33m[3\/3] mypy - Type Checking\u001b[0m\n\u001b[0;32m✓ mypy: Type check complete\u001b[0m\n\n=== Summary ===",
"stderr": "",
"interrupted": false,
"isImage": false
}
}