Skip to content

Commit aec09bc

Browse files
author
Mathieu Grzybek
committed
[pre-commit] use another yaml formatter and simplify go tests
1 parent 51327a4 commit aec09bc

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.pre-commit-config.yaml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
4-
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.0.1
4+
hooks:
5+
- id: end-of-file-fixer
6+
- id: trailing-whitespace
87

9-
- repo: https://github.com/tekwizely/pre-commit-golang
10-
rev: v0.8.3
11-
hooks:
8+
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
9+
rev: v1.5.0
10+
hooks:
11+
- id: pretty-format-yaml
12+
args: [--autofix, --indent, '2']
13+
14+
- repo: https://github.com/tekwizely/pre-commit-golang
15+
rev: v0.8.3
16+
hooks:
1217
#
1318
# Go Build
1419
#
@@ -19,17 +24,17 @@ repos:
1924
#
2025
# Go Test
2126
#
22-
- id: go-test-mod
27+
- id: go-test-mod
2328
#- id: go-test-pkg
24-
- id: go-test-repo-mod
29+
- id: go-test-repo-mod
2530
#- id: go-test-repo-pkg
2631
#
2732
# Go Vet
2833
#
2934
#- id: go-vet
30-
- id: go-vet-mod
35+
- id: go-vet-mod
3136
#- id: go-vet-pkg
32-
- id: go-vet-repo-mod
37+
- id: go-vet-repo-mod
3338
#- id: go-vet-repo-pkg
3439
#
3540
# Revive
@@ -47,13 +52,13 @@ repos:
4752
#
4853
# Formatters
4954
#
50-
- id: go-fmt
55+
- id: go-fmt
5156
#- id: go-imports # Replaces go-fmt
5257
#- id: go-returns # Replaces go-imports & go-fmt
5358
#
5459
# Style Checkers
5560
#
56-
- id: go-lint
61+
- id: go-lint
5762
#- id: go-critic
5863
#
5964
# GolangCI-Lint

0 commit comments

Comments
 (0)