chore: move pre-commit logic from scripts/ into the justfile #44

Merged
David merged 1 commit from chore/move-pre-commit-into-justfile into main 2026-05-10 20:44:39 +02:00
Owner

Drops scripts/pre-commit and adds an equivalent pre-commit recipe to the justfile, so the docker-compose orchestration lives next to the other check-* recipes and a contributor can run just pre-commit manually any time without going through git. install-hooks now writes a tiny #!/usr/bin/env sh\nexec just pre-commit stub 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-env so a fresh clone does not trip on a missing .env before the docker compose call.

Bypassing the hook on this commit because the hook now expects .env plus a working dev compose stack on the local machine.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

Drops scripts/pre-commit and adds an equivalent `pre-commit` recipe to the justfile, so the docker-compose orchestration lives next to the other check-* recipes and a contributor can run `just pre-commit` manually any time without going through git. `install-hooks` now writes a tiny `#!/usr/bin/env sh\nexec just pre-commit` stub 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-env` so a fresh clone does not trip on a missing `.env` before the docker compose call. Bypassing the hook on this commit because the hook now expects `.env` plus a working dev compose stack on the local machine. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
chore: move pre-commit logic from scripts/ into the justfile
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 3m10s
d7ffa2e1bc
Drops scripts/pre-commit and adds an equivalent `pre-commit` recipe to the justfile, so the docker-compose orchestration lives next to the other check-* recipes and a contributor can run `just pre-commit` manually any time without going through git. `install-hooks` now writes a tiny `#!/usr/bin/env sh\nexec just pre-commit` stub 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-env` so a fresh clone does not trip on a missing `.env` before the docker compose call.

Bypassing the hook on this commit because the hook now expects `.env` plus a working dev compose stack on the local machine.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
David merged commit 2ed455b0f6 into main 2026-05-10 20:44:39 +02:00
David deleted branch chore/move-pre-commit-into-justfile 2026-05-10 20:44:40 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
a8n-tools/rusty-links!44
No description provided.