-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 1.07 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 1.07 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
26
27
28
29
30
31
32
33
34
35
36
37
repos:
- repo: local
hooks:
- id: backend-lint
name: Backend Lint (Ruff)
entry: bash -c "cd backend && ../venv/bin/ruff check ."
language: system
types: [python]
pass_filenames: false
- id: backend-typecheck
name: Backend Type Check (Mypy)
entry: bash -c "cd backend && ../venv/bin/mypy ."
language: system
types: [python]
pass_filenames: false
- id: backend-test
name: Backend Tests (Pytest)
entry: bash -c "cd backend && ../venv/bin/pytest"
language: system
types: [python]
pass_filenames: false
- id: frontend-lint
name: Frontend Lint (ESLint)
entry: bash -c "cd frontend && node node_modules/.bin/eslint . --ext .js"
language: system
types: [javascript]
pass_filenames: false
- id: frontend-test
name: Frontend Tests (Vitest)
entry: bash -c "cd frontend && node node_modules/.bin/vitest run"
language: system
types: [javascript]
pass_filenames: false