Skip to content

Instantly share code, notes, and snippets.

@guykisel
Created April 6, 2019 00:39
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 guykisel/4393b32a084796fd38f5adf50ea5687e to your computer and use it in GitHub Desktop.
Save guykisel/4393b32a084796fd38f5adf50ea5687e to your computer and use it in GitHub Desktop.
# We're using:
# Repository local hooks: https://pre-commit.com/#repository-local-hooks
# Plus vendored https://github.com/pre-commit/pre-commit-hooks
repos:
- repo: local
hooks:
- id: custom-pre-commit
name: custom-pre-commit
entry: run_python.sh gitstuff/hooks/pre_commit.py
language: system
types: [text]
- id: trailing-whitespace
name: trailing-whitespace
entry: run_python.sh -m pre_commit_hooks.trailing_whitespace_fixer
language: system
types: [text]
- id: end-of-file-fixer
name: end-of-file-fixer
entry: run_python.sh -m pre_commit_hooks.end_of_file_fixer
language: system
types: [text]
- id: check-json
name: check-json
entry: run_python.sh -m pre_commit_hooks.check_json
language: system
types: [json]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment