-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (55 loc) · 1.53 KB
/
.pre-commit-config.yaml
File metadata and controls
60 lines (55 loc) · 1.53 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
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
# Note: Using pre-commit.ci lite with GitHub Actions for custom tooling support
repos:
# Built-in hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: '(internal/static/static/dist/style\.css|\.json|\.html)$'
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
# Gitleaks - Secret detection
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
# Go hooks
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.5.1
hooks:
- id: go-fmt
- id: go-mod-tidy
# golangci-lint
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.3
hooks:
- id: golangci-lint
# Markdown formatter
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.22
hooks:
- id: mdformat
additional_dependencies:
- mdformat-gfm
- mdformat-frontmatter
exclude: "^docs/"
- id: mdformat
name: mdformat for docs
additional_dependencies:
- mdformat-mkdocs
- mdformat-frontmatter
files: "^docs/"
# Custom build hook
- repo: local
hooks:
- id: make-build
name: Make Build
entry: make build
language: system
files: '\.(go|templ|js|css)$'
pass_filenames: false