Skip to content

chore(claude): add SessionStart hook to install dependencies - #42

Merged
chezhj merged 1 commit into
masterfrom
ccr-62618506-sec5qw
Oct 20, 2026
Merged

chezhj merged 1 commit into
masterfrom
ccr-62618506-sec5qw

Conversation

@chezhj

@chezhj chezhj commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds .claude/hooks/session-start.sh, a SessionStart hook for Claude Code cloud sessions that runs poetry install --no-interaction, so tests and linters work right away. It exits immediately unless CLAUDE_CODE_REMOTE=true.
  • Registers the hook under hooks.SessionStart in .claude/settings.json; the existing permissions are unchanged.
  • Modelled on the hook in chezhj/UltimatePlanner. Its frontend install and DJANGO_SETTINGS_MODULE export are left out: the JS tests (node --test) have no dependencies, and pytest.ini already selects settings.dev.

Test plan

  • Ran the hook locally with CLAUDE_CODE_REMOTE=true; it exited 0.
  • cz check --message accepts the PR title.
  • Start a fresh cloud session and confirm .venv is populated before the first command.

Generated by Claude Code

@chezhj
chezhj merged commit ab1bfd0 into master Oct 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants