-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (60 loc) · 1.52 KB
/
.pre-commit-config.yaml
File metadata and controls
63 lines (60 loc) · 1.52 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
default_install_hook_types:
- pre-commit
default_stages:
- pre-commit
exclude: |
(?x)^(
CHANGELOG.md|
.*\.(mp4|pdf|mp3|png)|
bun.lockb|
node_modules|
)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
# - id: trailing-whitespace
# args:
# - --no-utf8-locale
- id: end-of-file-fixer
exclude: '^(CHANGELOG\.md|bun\.lockb|node_modules/)'
- id: check-json
exclude: '^(node_modules/)'
- id: check-toml
- id: check-added-large-files
args:
- --maxkb=3000
- id: check-merge-conflict
- id: check-case-conflict
- id: detect-private-key
- repo: local
hooks:
- id: turbo-lint
name: turbo lint
description: Run linting via Turborepo
entry: bun run lint
language: system
files: \.(js|jsx|ts|tsx)$
pass_filenames: false
# - id: turbo-type-check
# name: turbo type check
# description: Run TypeScript checking via Turborepo
# entry: bun run type-check
# language: system
# files: \.(ts|tsx)$
# pass_filenames: false
- id: format-go
name: format go
description: Format Go files using make fmt
entry: make fmt
language: system
files: \.go$
pass_filenames: false
- repo: https://github.com/lyz-code/yamlfix/
rev: 1.17.0
hooks:
- id: yamlfix
args:
- -c
- .yamlfix.toml
exclude: ^cluster/.*$