-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (62 loc) · 2.42 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (62 loc) · 2.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
repos:
- repo: local
hooks:
- id: check-trailing-whitespace
name: check trailing whitespace
entry: node scripts/check-whitespace.mjs trailing-whitespace
language: system
types: [text]
- id: check-end-of-file-newline
name: check end of file newline
entry: node scripts/check-whitespace.mjs end-of-file-newline
language: system
types: [text]
- id: ballast-unit-tests-pre-push
name: pre-push unit tests for cli and language packages
entry: scripts/run-unit-tests-pre-push.sh
language: system
pass_filenames: false
always_run: true
stages: ["pre-push"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-json
- id: check-yaml
exclude: ^(agents/.+/templates/.*\.ya?ml|packages/ballast-typescript/(agents|skills)/|packages/ballast-python/ballast/agents/|packages/ballast-go/cmd/ballast-go/agents/|packages/ballast-go/cmd/ballast/agents/)
- id: check-added-large-files
- id: detect-private-key
- id: check-merge-conflict
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.1
hooks:
- id: yamllint
args: [--strict]
exclude: ^(agents/.+/templates/.*\.ya?ml|packages/ballast-typescript/(agents|skills)/|packages/ballast-python/ballast/agents/|packages/ballast-go/cmd/ballast-go/agents/|packages/ballast-go/cmd/ballast/agents/)
- repo: https://github.com/ddanier/sub-pre-commit.git
rev: v4.3.0-2
hooks:
- id: sub-pre-commit
alias: ballast-typescript
name: "pre-commit for packages/ballast-typescript/"
args: ["-p", "packages/ballast-typescript"]
files: "^packages/ballast-typescript/.*"
stages: ["pre-commit"]
- id: sub-pre-commit
alias: ballast-python
name: "pre-commit for packages/ballast-python/"
args: ["-p", "packages/ballast-python"]
files: "^packages/ballast-python/.*"
stages: ["pre-commit"]
- id: sub-pre-commit
alias: ballast-go
name: "pre-commit for packages/ballast-go/"
args: ["-p", "packages/ballast-go"]
files: "^packages/ballast-go/.*"
stages: ["pre-commit"]
- id: sub-pre-commit
alias: ballast-cli
name: "pre-commit for cli/ballast/"
args: ["-p", "cli/ballast"]
files: "^cli/ballast/.*"
stages: ["pre-commit"]