2026-02-14 16:41:24 +01:00
|
|
|
repos:
|
|
|
|
|
# Backend (Python) — ruff linting + formatting
|
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
|
|
rev: v0.15.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
|
|
|
|
args: [--fix]
|
|
|
|
|
files: ^backend/
|
|
|
|
|
- id: ruff-format
|
|
|
|
|
files: ^backend/
|
|
|
|
|
|
|
|
|
|
# Frontend (TypeScript/React) — local hooks using project node_modules
|
|
|
|
|
- repo: local
|
|
|
|
|
hooks:
|
2026-02-16 20:39:41 +01:00
|
|
|
- id: oxlint
|
|
|
|
|
name: oxlint
|
|
|
|
|
entry: npx oxlint -c frontend/.oxlintrc.json
|
2026-02-14 16:41:24 +01:00
|
|
|
language: system
|
|
|
|
|
files: ^frontend/src/.*\.(ts|tsx)$
|
|
|
|
|
pass_filenames: true
|
|
|
|
|
|
2026-02-16 20:39:41 +01:00
|
|
|
- id: oxfmt
|
|
|
|
|
name: oxfmt
|
|
|
|
|
entry: npx oxfmt --check --config frontend/.oxfmtrc.json
|
2026-02-14 16:41:24 +01:00
|
|
|
language: system
|
2026-02-16 20:39:41 +01:00
|
|
|
files: ^frontend/src/.*\.(ts|tsx)$
|
2026-02-14 16:41:24 +01:00
|
|
|
pass_filenames: true
|
|
|
|
|
|
|
|
|
|
- id: tsc
|
|
|
|
|
name: tsc
|
|
|
|
|
entry: bash -c 'cd frontend && npx tsc -b'
|
|
|
|
|
language: system
|
|
|
|
|
files: ^frontend/src/.*\.(ts|tsx)$
|
|
|
|
|
pass_filenames: false
|