-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
50 lines (50 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (50 loc) · 1.42 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
38
39
40
41
42
43
44
45
46
47
48
49
50
repos:
- repo: local
hooks:
- id: ruff
name: ruff linter
entry: uv run --project backend ruff check --fix
language: system
types: [python]
files: ^backend/
- id: ruff-format
name: ruff formatter
entry: uv run --project backend ruff format
language: system
types: [python]
files: ^backend/
- id: ty
name: ty type checker
entry: uv run --project backend ty check backend
language: system
types: [python]
files: ^backend/
pass_filenames: false
- id: frontend-typecheck
name: frontend type check
entry: bun run --cwd frontend type-check
language: system
files: ^frontend/
types_or: [ts, vue]
pass_filenames: false
- id: frontend-lint
name: frontend lint
entry: bun run --cwd frontend lint
language: system
files: ^frontend/
types_or: [ts, vue]
pass_filenames: false
- id: backend-test
name: backend tests
entry: uv run --project backend pytest backend/tests
language: system
types: [python]
files: ^backend/
pass_filenames: false
- id: frontend-test
name: frontend tests
entry: bun run --cwd frontend vitest run
language: system
files: ^frontend/
types_or: [ts, vue]
pass_filenames: false