feat(hooks): enforce the guard from a PreToolUse hook (#9)

This commit was merged in pull request #9.
This commit is contained in:
2026-09-22 19:39:24 -04:00
parent 3d487e0850
commit 8baeceac32
5 changed files with 432 additions and 0 deletions
+5
View File
@@ -41,3 +41,8 @@ ignore = ["ASYNC240"]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["src"]
[tool.ruff.lint.per-file-ignores]
# A PreToolUse hook runs inside the host's tool call. If it raises, it breaks
# the call it was meant to protect, so it swallows everything and logs instead.
"hooks/*.py" = ["BLE001", "S110"]