Skip to content

Commit 07759e0

Browse files
committed
add basic checks into precommit
1 parent 8f8c62f commit 07759e0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,20 @@ repos:
3939
dev/release/run_rat.sh apache-arrow-go.tar.gz"
4040
always_run: true
4141
pass_filenames: false
42+
43+
- repo: https://github.com/koalaman/shellcheck-precommit
44+
rev: v0.10.0
45+
hooks:
46+
- id: shellcheck
47+
- repo: https://github.com/scop/pre-commit-shfmt
48+
rev: v3.9.0-1
49+
hooks:
50+
- id: shfmt
51+
args:
52+
# The default args is "--write --simplify" but we don't use
53+
# "--simplify". Because it's conflicted will ShellCheck.
54+
- "--write"
55+
- repo: https://github.com/google/yamlfmt
56+
rev: v0.13.0
57+
hooks:
58+
- id: yamlfmt

0 commit comments

Comments
 (0)