Repository navigation
#110 docs: pre-commit installed in the main checkout; install only there - #128
Merged
Merged
Conversation
… there The main checkout now has .git/hooks/pre-commit (ruff check, ruff format --check); worktrees share it. `pre-commit install` run from a worktree pins that worktree's venv into the shared hook, so removing the worktree refuses every commit until reinstalled from the main checkout (measured). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… sentence Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
52 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #110
Change
.git/hooks, andinstallis run from the main checkout only..pre-commit-config.yaml: the install comment says the same.Why "only from the main checkout" (measured)
pre-commit installwritesINSTALL_PYTHON=<venv it ran in>into the shared.git/hooks/pre-commit. I ran it from a throwaway worktree and then removed that worktree. After that, every commit was refused with`pre-commit` not found, because there's no pre-commit on PATH. Reinstalling from the main checkout fixed it.Done outside the tree (main checkout)
core.hooksPathunset;.git/hooksheld samples only.uv run pre-commit install(pre-commit 4.7.0):.git/hooks/pre-commitexists,INSTALL_PYTHON=/home/exedev/status/.venv/bin/python, andcore.hooksPathis still unset. Nopre-pushhook is installed, since the config has nodefault_install_hook_types.Refresh hook (managing-skills at
bd6aaa2c)merge_modepr,_pr_refreshbuilds the bump withgit commit-tree(L2733) and exits at L2758. The direct-modegit commit(L2866) is never reached, so pre-commit can't run inside the refresh hook.git push(L2573), which runspre-push. None is installed.main, with no kill or back-off in.git/skills-update.log.Docs-only. No tests changed and no deploy.
🤖 Generated with Claude Code