{
"event": "PreToolUse",
"tool_name": "Edit",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/crawler\/pyproject.toml",
"old_string": "[tool.ruff.lint]\nselect = [\"ALL\"]\nignore = [\n \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",\n \"ANN101\", \"ANN102\",\n \"COM812\",\n \"CPY001\",\n]\n\n[tool.ruff.lint.per-file-ignores]\n\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\"]\n\"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]",
"new_string": "[tool.ruff.lint]\nselect = [\"ALL\"]\nignore = [\n \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",\n \"D203\", \"D213\",\n \"COM812\",\n \"CPY001\",\n \"TRY003\", \"EM101\", \"EM102\",\n \"TC001\", \"TC003\",\n]\n\n[tool.ruff.lint.per-file-ignores]\n\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\", \"DTZ001\", \"PT011\"]\n\"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]",
"replace_all": false
}
}
{
"tool_response": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/crawler\/pyproject.toml",
"oldString": "[tool.ruff.lint]\nselect = [\"ALL\"]\nignore = [\n \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",\n \"ANN101\", \"ANN102\",\n \"COM812\",\n \"CPY001\",\n]\n\n[tool.ruff.lint.per-file-ignores]\n\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\"]\n\"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]",
"newString": "[tool.ruff.lint]\nselect = [\"ALL\"]\nignore = [\n \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",\n \"D203\", \"D213\",\n \"COM812\",\n \"CPY001\",\n \"TRY003\", \"EM101\", \"EM102\",\n \"TC001\", \"TC003\",\n]\n\n[tool.ruff.lint.per-file-ignores]\n\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\", \"DTZ001\", \"PT011\"]\n\"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]",
"originalFile": "[project]\nname = \"crawler\"\nversion = \"0.1.0\"\ndescription = \"SEO-crawler for campus-am-see.de\"\nrequires-python = \">=3.12\"\n\n[tool.ruff]\nline-length = 100\ntarget-version = \"py312\"\nextend-exclude = [\"venv\", \".venv\", \"artifacts\", \"storage\", \"logs\"]\n\n[tool.ruff.lint]\nselect = [\"ALL\"]\nignore = [\n \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",\n \"ANN101\", \"ANN102\",\n \"COM812\",\n \"CPY001\",\n]\n\n[tool.ruff.lint.per-file-ignores]\n\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\"]\n\"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]\n\n[tool.mypy]\npython_version = \"3.12\"\nstrict = true\npackages = [\"src\"]\nexclude = \"(venv|artifacts|storage|logs)\"\n\n[tool.pytest.ini_options]\ntestpaths = [\"tests\"]\nasyncio_mode = \"auto\"\naddopts = \"-q --strict-markers\"\n\n[tool.coverage.run]\nsource = [\"src\"]\nbranch = true\n",
"structuredPatch": [
{
"oldStart": 13,
"oldLines": 13,
"newStart": 13,
"newLines": 15,
"lines": [
" select = [\"ALL\"]",
" ignore = [",
" \"D100\", \"D101\", \"D102\", \"D103\", \"D104\", \"D105\", \"D106\", \"D107\",",
"- \"ANN101\", \"ANN102\",",
"+ \"D203\", \"D213\",",
" \"COM812\",",
" \"CPY001\",",
"+ \"TRY003\", \"EM101\", \"EM102\",",
"+ \"TC001\", \"TC003\",",
" ]",
" ",
" [tool.ruff.lint.per-file-ignores]",
"-\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\"]",
"+\"tests\/**\/*.py\" = [\"S101\", \"PLR2004\", \"ANN\", \"DTZ001\", \"PT011\"]",
" \"scripts\/**\/*.py\" = [\"T201\", \"INP001\"]",
" ",
" [tool.mypy]"
]
}
],
"userModified": false,
"replaceAll": false
}
}