Created
December 13, 2021 17:49
-
-
Save jcarsique/e9cde4cb727619c50c8d4a91a740370e to your computer and use it in GitHub Desktop.
pre-commit DEBUG files filtering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This snippet provides easy debugging of types and files filtering. | |
# Usage: pre-commit run identity | |
# pre-commit run identity --all-files | |
# pre-commit run identity --from-ref origin/HEAD --to-ref HEAD | |
repos: | |
- repo: meta | |
hooks: | |
- id: identity | |
name: identity (filtered) | |
types: [ hcl ] | |
files: ^aFolder\/.+\.pkr\.hcl$ | |
- id: identity | |
name: identity (all files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment