Repository navigation
Expand file tree
/
Copy pathlefthook.yml
More file actions
81 lines (67 loc) · 1.82 KB
/
Copy pathlefthook.yml
File metadata and controls
81 lines (67 loc) · 1.82 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Lefthook configuration
# Refer to https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
pre-commit:
commands:
frontend-format:
root: "frontend/"
glob: "*.{js,jsx,ts,tsx}"
run: pnpm format {staged_files}
stage_fixed: true
frontend-lint:
root: "frontend/"
glob: "*.{js,jsx,ts,tsx}"
run: pnpm lint
backend-format:
root: "backend/"
glob: "*.go"
run: golangci-lint fmt {staged_files}
stage_fixed: true
backend-lint:
root: "backend/"
glob: "*.go"
run: golangci-lint run
browser-worker-format:
root: "browser-worker/"
glob: "*.go"
run: golangci-lint fmt {staged_files}
stage_fixed: true
browser-worker-lint:
root: "browser-worker/"
glob: "*.go"
run: golangci-lint run
ai-service-format:
root: "ai-service/"
glob: "*.py"
run: uv run ruff format {staged_files}
stage_fixed: true
ai-service-lint:
root: "ai-service/"
glob: "*.py"
run: uv run ruff check {staged_files}
extension-format:
root: "extension/"
glob: "*.{js,jsx,ts,tsx}"
run: pnpm format {staged_files}
stage_fixed: true
extension-lint:
root: "extension/"
glob: "*.{js,jsx,ts,tsx}"
run: pnpm lint
collab-service-format:
root: "collab-service/"
glob: "*.{ts}"
run: pnpm format {staged_files}
stage_fixed: true
collab-service-lint:
root: "collab-service/"
glob: "*.{ts}"
run: pnpm lint
content-pipeline-service-format:
root: "content-pipeline-service/"
glob: "*.rs"
run: cargo fmt -- {staged_files}
stage_fixed: true
content-pipeline-service-lint:
root: "content-pipeline-service/"
glob: "*.rs"
run: cargo clippy -- -D warnings