Skip to content

Instantly share code, notes, and snippets.

@homebysix
Last active June 28, 2021 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save homebysix/ddb4efea90a86189cab6ac65204998ea to your computer and use it in GitHub Desktop.
Save homebysix/ddb4efea90a86189cab6ac65204998ea to your computer and use it in GitHub Desktop.
Pre-commit config for public AutoPkg recipe repository (with processors)
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-ast
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- repo: https://github.com/ambv/black
rev: 21.6b0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/pycqa/pylint
rev: v2.8.3
hooks:
- id: pylint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment