Skip to content

Commit b21c27f

Browse files
authored
chore(pre-commit): upgrade shfmt to 3.4.0, use scop/pre-commit-shfmt (scop#619)
Use the docker variant; I believe it's more likely contributors have docker rather than go installed.
1 parent b6a9ed5 commit b21c27f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.pre-commit-config.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ repos:
88
- id: gitlint
99
stages: [commit-msg]
1010

11-
- repo: local
11+
- repo: https://github.com/scop/pre-commit-shfmt
12+
rev: v3.4.0-1
1213
hooks:
13-
- id: shfmt
14-
name: shfmt
15-
language: golang
16-
additional_dependencies: [mvdan.cc/sh/v3/cmd/[email protected]]
17-
entry: shfmt
18-
args: [-w, -s]
14+
- id: shfmt-docker
1915
types: [text]
2016
files: ^(bash_completion|completions/.+|test/(config/bashrc|update-test-cmd-list)|.+\.sh(\.in)?)$
2117
exclude: ^completions/(\.gitignore|Makefile.*)$

0 commit comments

Comments
 (0)