#74 (4/4): pre-commit runs lint plus gitleaks #197

Open
bobby wants to merge 1 commits from 74-4-pre-commit into 74-3-module-boundaries
pull from: 74-4-pre-commit
Owner

Closes #74. Stack: 1. probe app → 2. hapi serve → 3. module boundaries → 4. pre-commit. Based on the 3/4 branch.

Summary

.pre-commit-config.yaml
  local (uv run, versions from uv.lock):  ruff check · ruff format --check · pyright · lint-imports
  gitleaks/gitleaks v8.30.1:              detect hardcoded secrets

These are the same checks as just lint, plus gitleaks. The hook itself isn't installed automatically; the README shows uv run pre-commit install.

Evidence

  • Before: no pre-commit config.
    After:
$ uv run pre-commit run --all-files
ruff check....................Passed
ruff format...................Passed
pyright.......................Passed
import-linter.................Passed
Detect hardcoded secrets......Passed

Merge Danger

Door: two-way

Blast Radius: local commits only. The first run downloads a Go toolchain to build gitleaks into ~/.cache/pre-commit.

🤖 Generated with Claude Code

Closes #74. Stack: 1. probe app → 2. `hapi serve` → 3. module boundaries → **4. pre-commit**. Based on the 3/4 branch. ## Summary ```text .pre-commit-config.yaml local (uv run, versions from uv.lock): ruff check · ruff format --check · pyright · lint-imports gitleaks/gitleaks v8.30.1: detect hardcoded secrets ``` These are the same checks as `just lint`, plus gitleaks. The hook itself isn't installed automatically; the README shows `uv run pre-commit install`. ## Evidence - **Before:** no pre-commit config. **After:** ```text $ uv run pre-commit run --all-files ruff check....................Passed ruff format...................Passed pyright.......................Passed import-linter.................Passed Detect hardcoded secrets......Passed ``` ## Merge Danger **Door:** two-way **Blast Radius:** local commits only. The first run downloads a Go toolchain to build gitleaks into `~/.cache/pre-commit`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bobby added 1 commit 2026-11-27 17:01:44 -05:00
Local hooks run the same Ruff, pyright and import-linter checks as
`just lint` through `uv run`, so versions come from uv.lock; gitleaks
comes from its upstream hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 74-4-pre-commit:74-4-pre-commit
git checkout 74-4-pre-commit
Sign in to join this conversation.