-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
81 lines (80 loc) · 2.26 KB
/
.pre-commit-config.yaml
File metadata and controls
81 lines (80 loc) · 2.26 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
repos:
- repo: local
hooks:
- id: oxfmt
name: oxfmt
entry: pnpm exec oxfmt
language: system
files: \.(js|ts|json|ya?ml)$
exclude: ^js/src/types/generated/(aliases|cdp|zod)\.ts$|^js/src/types/generated/zod/
- id: oxlint
name: oxlint
entry: pnpm exec oxlint --format=stylish --disable-nested-config --tsconfig tsconfig.json
language: system
files: \.(js|ts|json)$
exclude: ^js/src/types/generated/(cdp|zod)\.ts$
pass_filenames: false
- id: tsc
name: tsc
entry: pnpm run typecheck
language: system
pass_filenames: false
always_run: true
- id: build
name: build
entry: pnpm run build
language: system
pass_filenames: false
always_run: true
require_serial: true
#- id: test
# name: test
# entry: pnpm run test
# language: system
# pass_filenames: false
# always_run: false
# require_serial: true
- id: ty-check
name: ty-check
entry: uv --directory python run ty check
language: system
files: ^python/
pass_filenames: false
- id: pyright
name: pyright
entry: uv --directory python run pyright
language: system
files: ^python/
pass_filenames: false
- id: go-fmt
name: go-fmt
entry: gofmt -w
language: system
files: ^go/.*\.go$
- id: go-build
name: go-build
entry: bash -c 'cd go && go build ./...'
language: system
files: ^go/
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-toml
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
- id: fix-byte-order-marker
- id: end-of-file-fixer
- id: detect-private-key
- id: debug-statements
- id: forbid-submodules
- id: check-added-large-files
args: ["--maxkb=600"]