-
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 (47 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
50 lines (47 loc) · 1.15 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
default_install_hook_types:
- pre-commit
default_stages:
- pre-commit
exclude: |
(?x)^(
CHANGELOG.md|
tools/.*/package\.json|
.*\.(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|tools/.*/package\.json|bun\.lockb|node_modules/)'
- id: check-json
exclude: '^(tools/.*/package\.json|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: 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/.*$