Skip to content

Commit

Permalink
add basic checks into precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
kiszk committed Dec 1, 2024
1 parent 8f8c62f commit 07759e0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,20 @@ repos:
dev/release/run_rat.sh apache-arrow-go.tar.gz"
always_run: true
pass_filenames: false

- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.9.0-1
hooks:
- id: shfmt
args:
# The default args is "--write --simplify" but we don't use
# "--simplify". Because it's conflicted will ShellCheck.
- "--write"
- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt

0 comments on commit 07759e0

Please sign in to comment.