Skip to content

Commit fe113d8

Browse files
committed
fix(ci): switch shfmt to scop/pre-commit-shfmt, fix branch protection target
1 parent 46c32ca commit fe113d8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: trailing-whitespace
1313
name: trim trailing whitespace
1414
- id: no-commit-to-branch
15-
args: ['--branch', 'master']
15+
args: ['--branch', 'main']
1616
- id: check-added-large-files
1717
name: check for added large files
1818
- id: detect-private-key
@@ -46,14 +46,14 @@ repos:
4646
args: ['--severity=warning']
4747
exclude: '^\.env'
4848

49-
- repo: local
49+
- repo: https://github.com/scop/pre-commit-shfmt
50+
rev: v3.13.1-1
5051
hooks:
5152
- id: shfmt
52-
name: shfmt
53-
entry: shfmt
54-
language: system
5553
args: [--write, --indent, '2', --case-indent, --binary-next-line]
56-
types: [shell]
54+
55+
- repo: local
56+
hooks:
5757
- id: bash-syntax
5858
name: bash syntax check
5959
entry: bash -n

0 commit comments

Comments
 (0)