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>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
---
|
||||
# nuzlocke-tracker-l12w
|
||||
title: Add condition badges for boss Pokemon mechanics
|
||||
status: in-progress
|
||||
status: completed
|
||||
type: feature
|
||||
priority: normal
|
||||
created_at: 2026-02-16T20:11:02Z
|
||||
updated_at: 2026-02-16T20:11:52Z
|
||||
updated_at: 2026-02-16T20:17:40Z
|
||||
---
|
||||
|
||||
Add visible badges on boss Pokemon that have mechanic-related conditions (Mega Evolution, Gigantamax, Dynamax, Terastallize). Create a ConditionBadge component following the EncounterMethodBadge pattern and integrate it into BossDefeatModal and BossTeamPreview.
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
---
|
||||
# nuzlocke-tracker-rb0p
|
||||
title: Implement pre-commit hooks for linting
|
||||
status: todo
|
||||
status: in-progress
|
||||
type: task
|
||||
priority: high
|
||||
created_at: 2026-02-10T12:05:39Z
|
||||
updated_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
|
||||
|
||||
- [ ] Install and configure a pre-commit framework (e.g. `pre-commit` for Python, `husky` + `lint-staged` for the frontend, or a unified approach)
|
||||
- [ ] Add backend hook: `ruff check` + `ruff format --check` on staged Python files
|
||||
- [ ] Add frontend hook: `eslint` + `tsc` on staged TS/TSX files
|
||||
- [ ] Update CI workflow to replace lint checks with test runs once the test suite is in place
|
||||
- [ ] Document the pre-commit setup in CLAUDE.md or DEPLOYMENT.md
|
||||
- [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
|
||||
Reference in New Issue
Block a user