Skip to content

Instantly share code, notes, and snippets.

@homebysix
Last active June 28, 2021 16:55
Show Gist options
  • Save homebysix/9e8ddaf424bd46af71ee973033b4ecfd to your computer and use it in GitHub Desktop.
Save homebysix/9e8ddaf424bd46af71ee973033b4ecfd to your computer and use it in GitHub Desktop.
Pre-commit config for public AutoPkg recipe repository (extended)
repos:
- repo: https://github.com/homebysix/pre-commit-macadmin
rev: v1.10.1
hooks:
- id: check-autopkg-recipes
args: [
"--recipe-prefix=com.github.yourusername.",
"--strict",
"--",
]
- id: forbid-autopkg-overrides
- id: forbid-autopkg-trust-info
- 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