{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/ruff check src tests scripts 2>&1 | tail -30",
"description": "Ruff on all"
}
}
{
"tool_response": {
"stdout": "13 | _PLACEHOLDERS = \", \".join(f\"%({n.strip()})s\" for n in _COLUMNS.split(\",\"))\n14 | _INSERT = f\"INSERT INTO resources ({_COLUMNS}) VALUES ({_PLACEHOLDERS})\"\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n15 | _SELECT_BY_PAGE = \"SELECT * FROM resources WHERE page_id=%s ORDER BY id\"\n |\n\nUP017 [*] Use `datetime.UTC` alias\n --> src\/infrastructure\/queue\/db_url_queue.py:37:67\n |\n35 | cur.execute(\n36 | _ENQUEUE,\n37 | (crawl_id, url.url_hash, url.url, datetime.now(tz=timezone.utc)),\n | ^^^^^^^^^^^^\n38 | )\n39 | return bool(cur.rowcount > 0)\n |\nhelp: Convert to `datetime.UTC` alias\n\nPLC0415 `import` should be at the top-level of a file\n --> src\/infrastructure\/queue\/db_url_queue.py:64:5\n |\n63 | def _rebuild_url(url: str, url_hash: str) -> NormalizedUrl:\n64 | from src.domain.value_objects.normalized_url import normalize\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n65 |\n66 | rebuilt = normalize(url)\n |\n\nFound 13 errors.\n[*] 2 fixable with the `--fix` option (1 hidden fix can be enabled with the `--unsafe-fixes` option).",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false
}
}