-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
36 lines (34 loc) · 1002 Bytes
/
.pre-commit-config.yaml
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
# auth-global hooks will be managed / updated across all auth repos.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
name: Lint trailing whitespace
exclude_types: [image]
- id: end-of-file-fixer
name: Lint end-of-file newline
exclude_types: [image]
- id: check-added-large-files
name: Don't permit large files
exclude_types: [image]
- repo: local
hooks:
- id: go-mod-tidy
name: Go mod tidy
language: system
entry: go mod tidy
types: [go]
pass_filenames: false
- id: golangci-lint
name: Go linting
language: system
entry: golangci-lint run --fix --timeout=5m
pass_filenames: false
types: [go]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: JSON and YAML formatting
types_or: [json, yaml]