chore: improve development workflow and git hooks#37
Merged
Conversation
Errors from post-commit hook were silently discarded, making debugging impossible. Now writes to ~/.codeindex/hooks/post-commit.log. Also cleaned up 5 stale files from .git/hooks/. Closes #36 (P0) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updated by post-commit hook. Update level: current
…mon.sh - Add scripts/hooks/hook-common.sh to version control - HookManager._ensure_hook_common() copies it on install - Makefile install-hooks now delegates to `codeindex hooks install --all` - Add test for hook-common.sh copy behavior Closes #36 (P1) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updated by post-commit hook. Update level: current
- CI: add --cov-fail-under=78 to prevent coverage regression - Hooks: change all shebangs from #!/bin/zsh to #!/usr/bin/env bash for cross-platform portability (templates + scripts/hooks/) - Fix zsh-only $= word splitting syntax in local pre-commit - Update test assertions for shebang flexibility Closes #36 (P2) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updated by post-commit hook. Update level: current
- Enable ruff T201 (print) and T100 (debugger) rules in pyproject.toml - Add per-file-ignores for CLI/test files that legitimately use print() - Remove ~50 lines of regex-based L2 debug detection from pre-commit template - Add mypy to dev dependencies with baseline config - CI: add mypy type check as informational (non-blocking) step - Makefile: add `make typecheck` target Closes #36 (P3) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updated by post-commit hook. Update level: affected
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.
Summary
.git/hooks/; redirect post-commit stderr to~/.codeindex/hooks/post-commit.loginstead of/dev/nullhook-common.shinscripts/hooks/; unifymake install-hooksto delegate tocodeindex hooks install --all--cov-fail-under=78coverage gate in CI; change all hook shebangs from#!/bin/zshto#!/usr/bin/env bashT201/T100rules; add mypy as informational CI checkTest plan
ruff check src/ tests/passes with new T rulestest_install_hook_copies_hook_commontest added and passingCloses #36
🤖 Generated with Claude Code