Skip to content

chore: pre-commit hook stack (ruff, gitleaks, commitizen, mypy, hygiene)#32

Merged
constk merged 1 commit into
developfrom
feat/3-pre-commit
Apr 26, 2026
Merged

chore: pre-commit hook stack (ruff, gitleaks, commitizen, mypy, hygiene)#32
constk merged 1 commit into
developfrom
feat/3-pre-commit

Conversation

@constk
Copy link
Copy Markdown
Owner

@constk constk commented Apr 26, 2026

Summary

  • Port .pre-commit-config.yaml from Teller: ruff (lint+format auto-fix), generic hygiene hooks (YAML/TOML/JSON parse, merge conflicts, large files >500 KB, whitespace, EOF, LF), gitleaks v8.24.3, commitizen at commit-msg, local mypy --strict running through uv run --frozen.
  • Bump pinned ruff to v0.15.12 (Teller's v0.11.0 predates py314 target support).
  • Update JSONC exclude from frontend/jsconfig.jsonfrontend/tsconfig*.json (template is TS).

Closes #3.

Test plan

  • pre-commit install --hook-type pre-commit --hook-type commit-msg wires both stages
  • pre-commit run --all-files exits 0 on the empty scaffold
  • Gitleaks blocks a contrived AWS access-key + generic-API-key pair (rule IDs aws-access-token, generic-api-key)
  • Commitizen rejects wip: not allowed and accepts feat: valid

🤖 Generated with Claude Code

…ne) (#3)

Port .pre-commit-config.yaml from Teller. Bump pinned ruff to v0.15.12 (Teller's
v0.11.0 predates py314 target support). Update the JSONC exclude pattern from
Svelte's jsconfig.json to TypeScript's tsconfig*.json since the template uses TS.

Closes #3

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@constk constk merged commit e67dc3a into develop Apr 26, 2026
@constk constk deleted the feat/3-pre-commit branch April 26, 2026 10:13
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.

1 participant