Skip to content

Commit 77410ec

Browse files
authored
feat: enable lefthook only in Claude Code environment (#56)
* feat: enable lefthook only in Claude Code environment - Add skip condition using CLAUDECODE environment variable - Hooks will only run when CLAUDECODE=1 (Claude Code environment) - Manual development remains unaffected by git hooks * docs: use English comment for consistency in lefthook config
1 parent a30c251 commit 77410ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lefthook.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# https://github.com/evilmartians/lefthook
33

44
pre-commit:
5+
skip:
6+
- run: test "$CLAUDECODE" != 1 # Skip for non-Claude Code environments
57
commands:
68
ci:
79
run: bun run ci

0 commit comments

Comments
 (0)