Skip to content

Instantly share code, notes, and snippets.

@jcarsique
Created December 13, 2021 17:49
Show Gist options
  • Save jcarsique/e9cde4cb727619c50c8d4a91a740370e to your computer and use it in GitHub Desktop.
Save jcarsique/e9cde4cb727619c50c8d4a91a740370e to your computer and use it in GitHub Desktop.
pre-commit DEBUG files filtering
# 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