Description
Developers sometimes commit code that fails pnpm lint or cargo fmt.
Goal
Enforce formatting and linting at commit time.
Tasks
- Add a
.pre-commit-config.yaml with hooks for rustfmt, cargo clippy, prettier, and eslint.
- Install
pre-commit as a dev dependency (pip install pre-commit or use a Docker image).
- Add a CI step that runs
pre-commit run --all-files to catch missing hooks.
- 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
Description
Developers sometimes commit code that fails
pnpm lintorcargo fmt.Goal
Enforce formatting and linting at commit time.
Tasks
.pre-commit-config.yamlwith hooks forrustfmt,cargo clippy,prettier, andeslint.pre-commitas a dev dependency (pip install pre-commitor use a Docker image).pre-commit run --all-filesto catch missing hooks.DEVELOPMENT_SETUP.md.Acceptance Criteria
Dependencies
Depends on: None
Blocks: None