Skip to content

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

@constk

Description

@constk

Problem

Even with CI gates configured, contributors (human and LLM) routinely push commits that break the gates. Pre-commit catches the violation locally before the push, saving CI minutes and review cycles.

Proposed solution

Port .pre-commit-config.yaml from Teller verbatim: ruff (lint+format auto-fix), generic hooks (YAML/TOML/JSON parse, merge conflicts, large files >500 KB, whitespace, EOF, LF), gitleaks (secret scan), commitizen (commit-msg stage), and a local mypy hook running uv run --frozen mypy --strict.

Acceptance criteria

Priority rationale

Critical: secrets leaked once cannot be unleaked. Pre-commit gitleaks is the cheapest first line of defence.

Depends on

#2

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreMaintenance, tooling, infraharnessCross-cutting harness mechanics (controls, hooks, gates)securitySecurity scanning, secrets, vulns

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions