forked from abagayev/go-forwardemail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (41 loc) · 1.15 KB
/
.pre-commit-config.yaml
File metadata and controls
48 lines (41 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
# Copyright Forward Email 2026
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-added-large-files
args: [--maxkb=500]
- id: check-merge-conflict
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fumpt
args: [-w]
- id: go-build-mod
- id: go-mod-tidy
- repo: local
hooks:
- id: golangci-lint-config-verify
name: golangci-lint config verify
entry: golangci-lint config verify --config .golangci.yml
language: system
pass_filenames: false
files: ^\.golangci\.yml$
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run --fix
language: system
types: [go]
pass_filenames: false
- id: go-test
name: go test
entry: go test -race ./...
language: system
types: [go]
pass_filenames: false
stages: [pre-push]