Mirror verifiers' local-hook pattern: ruff check/format on commit, ty check on push (matches CI). Add ``pre-commit`` to the dev dep group so ``uv sync`` installs it.