Skip to content

Commit

Permalink
try new shellcheck and shfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored Nov 29, 2023
1 parent 79a0e00 commit 1e3ca8a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ci:
skip: [shellcheck, shfmt]

exclude: '^.*\.(patch)$'

Expand All @@ -15,14 +14,17 @@ repos:
files: packagelist
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
types: []
args: ["-o", "all", "-e", "2148", "-e", "SC2033", "-e", "SC2032", "-e", "SC2034", "-e", "SC2154", "-e", "SC2312", "-e", "SC2164"]
files: '^.*\.(pacscript|sh)$'
- id: shfmt
- repo: https://github.com/pecigonzalo/pre-commit-shfmt
sha: master
hooks:
- id: shell-fmt
args: ["-i", "2", "-bn", "-ci", "-sr", "-s"]
types: []
exclude: |
Expand Down

0 comments on commit 1e3ca8a

Please sign in to comment.