This repository is the official pre-commit hook distribution point for the Ruff linter and formatter. Its primary function is to act as a lightweight, automated bridge between the Ruff project on PyPI and the pre-commit ecosystem. It does not contain Ruff's source code; instead, it provides the hook definitions (`.pre-commit-hooks.yaml`) that allow users to run `ruff check` and `ruff format` through pre-commit, with the actual tool being downloaded from PyPI. The architecture is a model of focused automation. The core logic resides in `mirror.py`, a PEP 723 compliant Python script designed to run on a schedule via GitHub Actions. This script automatically detects new Ruff releases on PyPI, updates the version pin in `pyproject.toml` and the documentation in `README.md`, and then commits, tags, and creates a GitHub Release for the new version. This ensures the repository is perpetually up-to-date without any manual intervention. The codebase demonstrates high craftsmanship within its narrow scope. The `mirror.py` script is exceptionally well-structured, using modern Python features like inline script metadata, the `packaging` library for robust version handling, and idempotent git operations. The CI/CD pipeline is equally well-designed, handling conditional pushes and release creation with clear, concise shell scripting. While the repository is small, every line of code serves a clear purpose and is executed with precision, making it a reliable and trustworthy component in the Python development toolchain.