Skip to content

Commit

Permalink
refactor!: use new stage names to silence pre-commit warning (#31)
Browse files Browse the repository at this point in the history
pre-commit >= 3.2.0 is required now.
  • Loading branch information
JulienGrv authored Nov 13, 2024
1 parent 58e7bbd commit 080a7bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names

- id: shfmt-src
name: shfmt
Expand All @@ -18,7 +19,8 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names

- id: shfmt-docker
name: shfmt
Expand All @@ -29,4 +31,5 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
9 changes: 6 additions & 3 deletions tools/generate_pre_commit_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
- id: shfmt-src
name: shfmt
Expand All @@ -28,7 +29,8 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
- id: shfmt-docker
name: shfmt
Expand All @@ -39,7 +41,8 @@
args: [-w, -s]
types: [shell]
exclude_types: [csh, tcsh, zsh]
stages: [commit, merge-commit, push, manual]
stages: [pre-commit, pre-merge-commit, pre-push, manual]
minimum_pre_commit_version: 3.2.0 # for "stages" names
"""


Expand Down

0 comments on commit 080a7bf

Please sign in to comment.