{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": ".\/venv\/bin\/ruff check src tests scripts 2>&1 | tail -30",
"description": "ruff on new code"
}
}
{
"tool_response": {
"stdout": "34 | async def _update_link(self, link: Link) -> int:\n35 | assert link.id is not None\n | ^^^^^^\n36 | result = await self._checker.execute(link.target_url)\n37 | updated = Link(\n |\n\nUP035 [*] Import from `collections.abc` instead: `Mapping`\n --> src\/application\/use_cases\/start_crawl.py:4:1\n |\n3 | from dataclasses import dataclass\n4 | from typing import Mapping\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^\n5 |\n6 | from src.domain.entities.crawl import Crawl\n |\nhelp: Import from `collections.abc`\n\nS101 Use of `assert` detected\n --> src\/application\/use_cases\/start_crawl.py:58:9\n |\n57 | def _enqueue_seed(self, *, crawl_id: int | None, raw_url: str, now: object) -> None:\n58 | assert crawl_id is not None\n | ^^^^^^\n59 | normalized = self._normalizer.normalize(raw_url)\n60 | url = self._urls.upsert(\n |\n\nFound 11 errors.\n[*] 4 fixable with the `--fix` option.",
"stderr": "",
"interrupted": false,
"isImage": false,
"noOutputExpected": false
}
}