-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (27 loc) · 899 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
29 lines (27 loc) · 899 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: local
hooks:
# shellcheck rather than a pinned remote hook, which packages itself as a
# docker image; this matches golangci-lint below in using the binary that
# is already installed. `install` has no extension, so `types: [shell]`
# rather than a filename pattern - pre-commit identifies it by shebang.
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types: [shell]
- id: golangci-lint
name: golangci-lint
entry: golangci-lint run --config .golangci.yml
language: system
pass_filenames: false
always_run: true
types: [go]
files: \.go$
stages: [commit]