Skip to main content
scripts/install_git_hooks.sh · chapter Tests and team tooling, file 27 · 62 lines · open in the repository

What it does

Install this repository’s git hooks on your machine (decision 0011). Optional, per person. pre-commit rebuilds docs-site/ (scripts/build_docs.py) and stages it, so a commit you make by hand never leaves the docs behind. (Claude Code commits are also checked by .claude/hooks/pre-commit-tests.sh, which runs tests/test_docs_site.py.) post-commit in the background, on main: pushes docs-site/ to the docs repository Mintlify deploys, the dashboard to the repository Streamlit Community Cloud deploys, and the project copy the cloud streamer runs (scripts/sync_docs_site.sh, scripts/sync_dashboard_app.sh, scripts/sync_live_stream.sh; decisions 0011, 0013, 0015). It also points those three at the team’s github.com repositories (git config calendar-effects.*; an address already set is kept). Pushing needs the GitHub CLI signed in (gh auth login) with write access to the Calendar-Effects organisation; without it the pushes fail quietly and commits still work. Each hook’s lines sit between markers, so running this again replaces them, and other hooks already in the file (for example graphify’s) are kept. Remove: scripts/install_git_hooks.sh —remove

Source

scripts/install_git_hooks.sh