Skip to content

Commit ed34aca

Browse files
committed
use new stages names to silence pre-commit warning
1 parent 0996aac commit ed34aca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pre-commit-hooks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
args: [-w, -s]
77
types: [shell]
88
exclude_types: [csh, tcsh, zsh]
9-
stages: [commit, merge-commit, push, manual]
9+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
1010

1111
- id: shfmt-src
1212
name: shfmt
@@ -18,7 +18,7 @@
1818
args: [-w, -s]
1919
types: [shell]
2020
exclude_types: [csh, tcsh, zsh]
21-
stages: [commit, merge-commit, push, manual]
21+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
2222

2323
- id: shfmt-docker
2424
name: shfmt
@@ -29,4 +29,4 @@
2929
args: [-w, -s]
3030
types: [shell]
3131
exclude_types: [csh, tcsh, zsh]
32-
stages: [commit, merge-commit, push, manual]
32+
stages: [pre-commit, pre-merge-commit, pre-push, manual]

tools/generate_pre_commit_hooks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
args: [-w, -s]
1717
types: [shell]
1818
exclude_types: [csh, tcsh, zsh]
19-
stages: [commit, merge-commit, push, manual]
19+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
2020
2121
- id: shfmt-src
2222
name: shfmt
@@ -28,7 +28,7 @@
2828
args: [-w, -s]
2929
types: [shell]
3030
exclude_types: [csh, tcsh, zsh]
31-
stages: [commit, merge-commit, push, manual]
31+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
3232
3333
- id: shfmt-docker
3434
name: shfmt
@@ -39,7 +39,7 @@
3939
args: [-w, -s]
4040
types: [shell]
4141
exclude_types: [csh, tcsh, zsh]
42-
stages: [commit, merge-commit, push, manual]
42+
stages: [pre-commit, pre-merge-commit, pre-push, manual]
4343
"""
4444

4545

0 commit comments

Comments
 (0)