You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add prek as a pre-commit hook runner for shellcheck #107
Add prek as a managed tool in this dotfiles repo to run shellcheck as a pre-commit hook locally (currently shellcheck only runs in CI).
prek is a Rust-based drop-in replacement for the pre-commit Python tool. It uses the same hook ecosystem but is faster and ships as a single binary. It supports a native prek.toml config format (preferred over .pre-commit-config.yaml).
A second check worth running as a pre-commit hook: CLAUDE_CODE_USE_VERTEX in tools/claude/config/settings.json must never be committed as "1". On the work laptop that value moves every Claude Code session to Vertex AI while the subscription's usage limit is reached, so the working copy legitimately holds "1" for hours at a time. A commit made then would start personal Macs, which have no Vertex AI project, on Vertex AI.
tools/claude/tests/test_settings.py checks this today by reading HEAD, so it catches the commit only after it is made, at the next check run or in CI. As a pre-commit hook it would read the staged version instead and stop the commit itself.
Activity
ooloth commentedon Nov 17, 2026
A second check worth running as a pre-commit hook:
CLAUDE_CODE_USE_VERTEXintools/claude/config/settings.jsonmust never be committed as"1". On the work laptop that value moves every Claude Code session to Vertex AI while the subscription's usage limit is reached, so the working copy legitimately holds"1"for hours at a time. A commit made then would start personal Macs, which have no Vertex AI project, on Vertex AI.tools/claude/tests/test_settings.pychecks this today by readingHEAD, so it catches the commit only after it is made, at the next check run or in CI. As a pre-commit hook it would read the staged version instead and stop the commit itself.