]> git.donarmstrong.com Git - perltidy.git/commit
Add default list of stages for pre-commit hook
authorVille Skyttä <ville.skytta@upcloud.com>
Tue, 22 Oct 2024 21:09:03 +0000 (00:09 +0300)
committerVille Skyttä <ville.skytta@iki.fi>
Tue, 22 Oct 2024 21:09:50 +0000 (00:09 +0300)
commitdbdefa395075acfd5ed1b706d0632845641b1101
treec45b951c2c5bb37e6adec91f93a177ff7175f843
parent598642e65c2c73557808d2712f8d7fdcac0b36d2
Add default list of stages for pre-commit hook

The pre-commit default of running in all possible stages is not quite
optimal for perltidy. Follow upstream advice:

https://pre-commit.com/#confining-hooks-to-run-at-certain-stages

> If you are authoring a tool, it is usually a good idea to provide an
> appropriate stages property. For example a reasonable setting for a
> linter or code formatter would be stages:
> [pre-commit, pre-merge-commit, pre-push, manual].
.pre-commit-hooks.yaml