forked from daeuniverse/dae
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (30 loc) · 849 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (30 loc) · 849 Bytes
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
# reference: https://verdantfox.com/blog/view/how-to-use-git-pre-commit-hooks-the-hard-way-and-the-easy-way
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
args:
- --unsafe
- id: double-quote-string-fixer
- id: end-of-file-fixer
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: golangci-lint
- repo: local
hooks:
- id: gofmt-fixer
name: gofmt
entry: gofmt -w .
language: golang
types: [go]
- id: check-license-signature
name: license-signature-automation
entry: ./hack/maintenance/append_license_signature.sh
language: script
files: \.go$