Skip to content

Commit d1df577

Browse files
Merge pull request #2393 from VWS-Python/shfmt-update-command
Update shfmt command to work on more inputs
2 parents e55d2d6 + cb1a739 commit d1df577

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,13 @@ repos:
8181

8282
- id: shfmt
8383
name: shfmt
84-
entry: shfmt --write
84+
entry: shfmt --write --space-redirects --indent=4
8585
language: system
86-
pass_filenames: false
8786
types_or: [shell]
8887

8988
- id: shfmt-docs
9089
name: shfmt-docs
91-
entry: doccmd --language=shell --language=console --no-pad-file --command="shfmt --write"
90+
entry: doccmd --language=shell --language=console --skip-marker=shfmt --no-pad-file --command="shfmt --write --space-redirects --indent=4"
9291
language: system
9392
types_or: [markdown, rst]
9493

0 commit comments

Comments
 (0)