forked from Lucas-C/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
33 lines (33 loc) · 1.04 KB
/
.pre-commit-hooks.yaml
File metadata and controls
33 lines (33 loc) · 1.04 KB
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
32
33
- id: forbid-crlf
name: CRLF end-lines checker
description: "Forbid files containing CRLF end-lines to be committed"
entry: forbid_crlf
language: python
files: ''
- id: remove-crlf
name: CRLF end-lines remover
description: "Replace CRLF end-lines by LF ones before committing"
entry: remove_crlf
language: python
files: ''
- id: forbid-tabs
name: No-tabs checker
description: "Forbid files containing tabs to be committed"
entry: forbid_tabs
language: python
files: ''
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
- id: remove-tabs
name: Tabs remover
description: "Replace tabs by whitespaces before committing"
entry: remove_tabs
language: python
args: [ --whitespaces-count, '4' ]
files: ''
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
- id: insert-license
name: Insert license in comments
description: "Insert a short license disclaimer as a header comment in source files"
entry: insert_license
language: python
files: '.*/.*'