Skip to content

Instantly share code, notes, and snippets.

@homebysix
Last active June 28, 2021 16:55
Show Gist options
  • Save homebysix/833cf22ae8f52b659545027e30ae1ba3 to your computer and use it in GitHub Desktop.
Save homebysix/833cf22ae8f52b659545027e30ae1ba3 to your computer and use it in GitHub Desktop.
Pre-commit config for private AutoPkg recipe repository (YAML recipes and overrides)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.pretendco.cpe.",
"--override-prefix=local.",
"--",
]
- id: forbid-autopkg-overrides
exclude: ^RecipeOverrides/
- id: forbid-autopkg-trust-info
exclude: ^RecipeOverrides/
- id: check-autopkg-recipe-list
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment