Skip to content

Commit

Permalink
Move hooks into their own directory
Browse files Browse the repository at this point in the history
Move the hooks into their own directory to organize things better. Update the
hook definitions to match the new file locations.
  • Loading branch information
mcdonnnj committed Dec 19, 2020
1 parent 4bb16ee commit 7d45242
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- id: packer_validate
name: Packer Validate
description: This hook runs `packer validate` on appropriate files.
entry: packer_validate.sh
entry: hooks/packer_validate.sh
language: script
files: ^(packer\.json|.*\.pkr\.hcl)$
pass_filenames: true
Expand All @@ -10,7 +10,7 @@
- id: packer_fmt
name: Packer Format
description: This hook runs `packer fmt` on appropriate files.
entry: packer_fmt.sh
entry: hooks/packer_fmt.sh
language: script
files: (\.pkr\.hcl)$
pass_filenames: true
File renamed without changes.
File renamed without changes.

0 comments on commit 7d45242

Please sign in to comment.