Skip to content

Commit

Permalink
Add shfmt to .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Feb 17, 2021
1 parent d59a3ad commit 830132c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,11 @@ repos:
tools/manual/collapsibleList.js|
tools/manual/toggle_folding.js|
)$
- id: shfmt
name: 'Reformat shell scripts with shfmt'
minimum_pre_commit_version: 2.4.0
language: golang
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.2.2]
entry: shfmt
args: ['-i=2', '-ci', '-sr', '-w']
files: '\.sh$'

0 comments on commit 830132c

Please sign in to comment.