{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "\/opt\/scripts\/python-check.sh 2>&1 | tail -40",
"timeout": 60000,
"description": "Check Python errors"
}
}
{
"tool_response": {
"stdout": "232 | for kategorie, elemente in erlaubte.items():\n | ^^^^^^^^^\n233 | erlaubte_str.extend(elemente[:3])\n |\nhelp: Rename unused `kategorie` to `_kategorie`\n\nFound 2 errors.\n[*] 1 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option).\n\u001b[0;31m✗ Ruff: Linting errors found\u001b[0m\n\n\u001b[1;33m[2\/3] Ruff - Format Check\u001b[0m\nWould reformat: \/opt\/scripts\/pipeline\/generate.py\n1 file would be reformatted, 14 files already formatted\n\u001b[0;31m✗ Ruff: Formatting issues found (run with --fix to auto-format)\u001b[0m\n\n\u001b[1;33m[3\/3] mypy - Type Checking\u001b[0m\n\/opt\/scripts\/pipeline\/chunk.py:8: error: Module \"config\" has no attribute \"CHUNK_OVERLAP_PERCENT\" [attr-defined]\n\/opt\/scripts\/pipeline\/chunk.py:8: error: Module \"config\" has no attribute \"MAX_CHUNK_SIZE\" [attr-defined]\n\/opt\/scripts\/pipeline\/chunk.py:8: error: Module \"config\" has no attribute \"MIN_CHUNK_SIZE\" [attr-defined]\n\/opt\/scripts\/pipeline\/detect.py:10: error: Module \"config\" has no attribute \"NEXTCLOUD_PATH\" [attr-defined]\n\/opt\/scripts\/pipeline\/detect.py:10: error: Module \"config\" has no attribute \"SUPPORTED_EXTENSIONS\" [attr-defined]\n\/opt\/scripts\/pipeline\/pipeline.py:26: error: Module \"config\" has no attribute \"MAX_RETRIES\" [attr-defined]\n\/opt\/scripts\/pipeline\/pipeline.py:26: error: Module \"config\" has no attribute \"RETRY_BACKOFF_BASE\" [attr-defined]\n\/opt\/scripts\/pipeline\/db.py:8: error: Module \"config\" has no attribute \"DB_CONFIG\" [attr-defined]\n\/opt\/scripts\/pipeline\/semantic_chunk_analyzer.py:29: error: Module \"config\" has no attribute \"OLLAMA_HOST\" [attr-defined]\n\/opt\/scripts\/pipeline\/embed.py:11: error: Module \"config\" has no attribute \"EMBEDDING_DIMENSION\" [attr-defined]\n\/opt\/scripts\/pipeline\/embed.py:11: error: Module \"config\" has no attribute \"EMBEDDING_MODEL\" [attr-defined]\n\/opt\/scripts\/pipeline\/embed.py:11: error: Module \"config\" has no attribute \"OLLAMA_HOST\" [attr-defined]\n\/opt\/scripts\/pipeline\/embed.py:11: error: Module \"config\" has no attribute \"QDRANT_HOST\" [attr-defined]\n\/opt\/scripts\/pipeline\/embed.py:11: error: Module \"config\" has no attribute \"QDRANT_PORT\" [attr-defined]\n\/opt\/scripts\/pipeline\/extract.py:9: error: Module \"config\" has no attribute \"OCR_ENABLED\" [attr-defined]\n\/opt\/scripts\/pipeline\/extract.py:9: error: Module \"config\" has no attribute \"OCR_LANGUAGE\" [attr-defined]\n\/opt\/scripts\/pipeline\/generate.py:12: error: Module \"config\" has no attribute \"ANTHROPIC_API_KEY\" [attr-defined]\n\/opt\/scripts\/pipeline\/generate.py:12: error: Module \"config\" has no attribute \"ANTHROPIC_MODEL\" [attr-defined]\n\/opt\/scripts\/pipeline\/generate.py:12: error: Module \"config\" has no attribute \"OLLAMA_CHAT_MODEL\" [attr-defined]\n\/opt\/scripts\/pipeline\/generate.py:12: error: Module \"config\" has no attribute \"OLLAMA_HOST\" [attr-defined]\n\u001b[0;32m✓ mypy: Type check complete\u001b[0m\n\n=== Summary ===\n\u001b[0;31m2 check(s) failed\u001b[0m",
"stderr": "",
"interrupted": false,
"isImage": false
}
}