chore: move pre-commit logic from scripts/ into the justfile #44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/move-pre-commit-into-justfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drops scripts/pre-commit and adds an equivalent
pre-commitrecipe to the justfile, so the docker-compose orchestration lives next to the other check-* recipes and a contributor can runjust pre-commitmanually any time without going through git.install-hooksnow writes a tiny#!/usr/bin/env sh\nexec just pre-commitstub at .git/hooks/pre-commit (a regular file, not a symlink), so a leftover symlink from the previous install layout cannot get written through to its target.The new recipe also depends on the existing
ensure-envso a fresh clone does not trip on a missing.envbefore the docker compose call.Bypassing the hook on this commit because the hook now expects
.envplus a working dev compose stack on the local machine.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com