diff --git a/Justfile b/Justfile index 68ee037..e192713 100644 --- a/Justfile +++ b/Justfile @@ -18,7 +18,7 @@ init-env: # Install Git hooks for this repository. install-git-hooks: @mkdir -p .git/hooks - @printf '%s\n' '#!/bin/sh' '' 'just test' > .git/hooks/pre-commit + @printf '%s\n' '#!/bin/sh' '' 'just check test' > .git/hooks/pre-commit @chmod +x .git/hooks/pre-commit @printf '%s\n' 'Installed .git/hooks/pre-commit' @printf '%s\n' '#!/bin/sh' '' 'just ci' > .git/hooks/pre-push @@ -223,4 +223,4 @@ test-timeout: test-timeout-lua test-timeout-shell # Lint all Lua source with luacheck. check: check-luacheck - luacheck . + luacheck --quiet . diff --git a/docs/adrs/adr-0011-git-hooks-own-commit-push-verification.md b/docs/adrs/adr-0011-git-hooks-own-commit-push-verification.md index cea038e..0f87adb 100644 --- a/docs/adrs/adr-0011-git-hooks-own-commit-push-verification.md +++ b/docs/adrs/adr-0011-git-hooks-own-commit-push-verification.md @@ -23,12 +23,12 @@ agent workflows if agents run one verification path and hooks run another. Install two local Git hooks through `just install` / `just install-git-hooks`: -- `.git/hooks/pre-commit` runs `just test`. +- `.git/hooks/pre-commit` runs `just check test`. - `.git/hooks/pre-push` runs `just ci`. When an agent is explicitly asked to commit and/or push, it should not run `just test` manually before the Git operation. The hook is the source of truth for that workflow: -commit triggers `just test`, and push triggers `just ci`. +commit triggers `just check test`, and push triggers `just ci`. Manual verification is still appropriate outside commit/push workflows. For example, run `just test` while developing a behavior change, and run `just ci` when checking the full