I suspect not all git hook stages are relevant for this hook, so we should scope it to just those of relevance so its not run for no reason when it doesn't have to be. See https://pre-commit.com/#creating-new-hooks and the stages part.
PS: Adding a link to a related configuration reference for files like .pre-commit-hooks.yaml at the top of the file is a practice I really love, then anyone can quickly just visit the configuration reference and learn more about the kind of things that can make sense to do in a file. In this case, https://pre-commit.com/#creating-new-hooks is the relevant reference link for .pre-commit-hooks.yaml
I suspect not all git hook stages are relevant for this hook, so we should scope it to just those of relevance so its not run for no reason when it doesn't have to be. See https://pre-commit.com/#creating-new-hooks and the
stages
part.PS: Adding a link to a related configuration reference for files like .pre-commit-hooks.yaml at the top of the file is a practice I really love, then anyone can quickly just visit the configuration reference and learn more about the kind of things that can make sense to do in a file. In this case, https://pre-commit.com/#creating-new-hooks is the relevant reference link for .pre-commit-hooks.yaml