Files
nuzlocke-tracker/.beans/nuzlocke-tracker-rb0p--implement-pre-commit-hooks-for-linting.md
Julian Tabel 8cfa074ea6 Migrate pre-commit hooks from pre-commit to prek
Replace the Python-based pre-commit framework with prek (Rust) for
faster hook execution. Convert .pre-commit-config.yaml to prek.toml,
remove pre-commit from dev dependencies, and apply ruff auto-fixes
(UP037: remove unnecessary string quotes in type annotations).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 18:17:23 +01:00

18 lines
645 B
Markdown

---
# nuzlocke-tracker-rb0p
title: Implement pre-commit hooks for linting
status: in-progress
type: task
priority: high
created_at: 2026-02-10T12:05:39Z
updated_at: 2026-02-17T17:15:05Z
---
Set up pre-commit hooks to automatically run linting before every commit, catching issues before they reach the pipeline.
## Checklist
- [x] Install and configure a pre-commit framework — migrated from `pre-commit` to `prek` (Rust)
- [x] Add backend hook: `ruff check --fix` + `ruff format` on staged Python files
- [x] Add frontend hook: `oxlint`, `oxfmt --check`, and `tsc -b` on staged TS/TSX files
- [x] Document the pre-commit setup in CLAUDE.md