forked from jdswensen/git-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
31 lines (31 loc) · 1 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/pre-commit/pre-commit
rev: v1.7.0
hooks:
- id: validate_manifest
- repo: local
hooks:
- id: pretty-shell
name: pretty-shell
description: Make shell scripts pretty
entry: pre-commit/pretty-shell.sh
language: script
files: (\.sh|\.zsh|\.ksh)$
- id: windows-encoding-fixer
name: windows-encoding-fixer
description: Replace Windows encoded files with UTF-8 encoded files
entry: pre-commit/windows-encoding-fixer.sh
language: script
files: (\.c|\.cpp|\.h|\.hpp|\.sh|\.zsh|\.ksh|\.yaml|.yml)$
- id: tab-fixer
name: tab-fixer
description: Replace tabs with spaces
entry: pre-commit/tab-fixer.sh
language: script
files: (\.c|\.cpp|\.h|\.hpp|\.sh|\.zsh|\.ksh|\.yaml|\.yml)$