Skip to content

Commit 01b7ac9

Browse files
Fix gofmt hook, exclude .txt files
1 parent a95499e commit 01b7ac9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.pre-commit-config.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
3+
exclude: \.txt$
34
repos:
45
- repo: https://github.com/pre-commit/pre-commit-hooks
56
rev: v5.0.0
@@ -17,6 +18,6 @@ repos:
1718
files: \.v$
1819
- id: gofmt
1920
name: format .go files
20-
entry: go fmt
21-
language: system
21+
entry: gofmt -w -l
22+
language: golang
2223
types: [go]

0 commit comments

Comments
 (0)