forked from NVIDIA-AI-Blueprints/rag
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
25 lines (25 loc) · 1.25 KB
/
.pre-commit-config.yaml
File metadata and controls
25 lines (25 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
repos:
# Frontend hooks with fallback for environments without pnpm
- repo: local
hooks:
- id: frontend-lint
name: Frontend ESLint
entry: bash -c 'export PATH="$HOME/.nvm/versions/node/v22.16.0/bin:$PATH" && if command -v pnpm >/dev/null 2>&1; then cd frontend && pnpm run lint; else echo "Skipping lint - pnpm not available"; fi'
language: system
files: ^frontend/
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false
- id: frontend-typecheck
name: Frontend TypeScript Check
entry: bash -c 'export PATH="$HOME/.nvm/versions/node/v22.16.0/bin:$PATH" && if command -v pnpm >/dev/null 2>&1; then cd frontend && pnpm exec tsc --noEmit; else echo "Skipping typecheck - pnpm not available"; fi'
language: system
files: ^frontend/
types_or: [ts, tsx]
pass_filenames: false
- id: frontend-test
name: Frontend Tests
entry: bash -c 'export PATH="$HOME/.nvm/versions/node/v22.16.0/bin:$PATH" && if command -v pnpm >/dev/null 2>&1; then cd frontend && pnpm run test:run; else echo "Skipping tests - pnpm not available"; fi'
language: system
files: ^frontend/
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false