{"agent":"claude","input":"Add pre-commit hooks to this Python project and open a pull request. Read scripts/install, scripts/check, scripts/lint, scripts/test, requirements.txt, pyproject.toml, .github/workflows/test-suite.yml and .github/CONTRIBUTING.md first. Write .pre-commit-config.yaml with trailing-whitespace, end-of-file-fixer, check-yaml and check-toml from pre-commit/pre-commit-hooks pinned to a release, and local system hooks that run the project's own pinned ruff format --check, ruff check and mypy from the virtual environment over the same paths scripts/check uses, so the hook result equals the scripts/check result; run mypy on the whole package rather than per file. Add pre-commit to requirements.txt pinned like the other tools, add pre-commit install to scripts/install, and document it in CONTRIBUTING.md. Do not change CI. Run scripts/install, pre-commit run --all-files and scripts/check on Python 3.9 in the sandbox, keep any fixes the hooks make in a separate commit, and quote the outputs in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}