Add support to call hook from the python based "pre-commit" tool
Add a ".pre-commit-hooks.yaml" file to the repository to support calling the hook from the python base pre-commit tool.
A possible file:
- id: kw-pre-commit
name: Legacy Kitware pre-commit checks
description: Checks author, whitespace, filesize etc
entry: pre-commit
language: script
stages: [pre-commit]
pass_filenames: false
- id: kw-prepare-commit-msg
name: Legacy Kitware prepare commit message
description: A placeholder for local chaining of prepare-commit-msg checks
entry: prepare-commit-msg
language: script
stages: [prepare-commit-msg]
pass_filenames: false
- id: kw-commit-msg
name: Legacy Kitware commit message
description: Checks standard format of commit messages
entry: commit-msg
language: script
stages: [commit-msg]
pass_filenames: false
- id: kw-post-commit
name: Legacy Kitware post commit checks
description: A placeholder for local chaining of post-commit checks
entry: post-commit
language: script
stages: [post-commit]
pass_filenames: false
- id: kw-pre-push
name: Legacy Kitware pre-push checks
description: A placeholder for local chaining of pre-push checks
entry: pre-push
language: script
stages: [pre-push]
pass_filenames: false