Skip to content

DEVEX: Add pre‑commit hooks for formatting and linting #956

Description

@OSEH-svg

Description
Developers sometimes commit code that fails pnpm lint or cargo fmt.

Goal
Enforce formatting and linting at commit time.

Tasks

  1. Add a .pre-commit-config.yaml with hooks for rustfmt, cargo clippy, prettier, and eslint.
  2. Install pre-commit as a dev dependency (pip install pre-commit or use a Docker image).
  3. Add a CI step that runs pre-commit run --all-files to catch missing hooks.
  4. Document the setup in DEVELOPMENT_SETUP.md.

Acceptance Criteria

  • Commits that violate formatting are rejected locally.
  • CI fails if a push contains unformatted code.

Dependencies
Depends on: None
Blocks: None

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions