-
Notifications
You must be signed in to change notification settings - Fork 50
/
.pre-commit-hooks.yaml
45 lines (45 loc) · 1.51 KB
/
.pre-commit-hooks.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- id: forbid-crlf
name: CRLF end-lines checker
description: "Forbid files containing CRLF end-lines to be committed"
entry: forbid_crlf
language: python
types: [text]
stages: [pre-commit, pre-push, pre-merge-commit]
minimum_pre_commit_version: "3.2.0"
- id: remove-crlf
name: CRLF end-lines remover
description: "Replace CRLF end-lines by LF ones before committing"
entry: remove_crlf
language: python
types: [text]
stages: [pre-commit, pre-push, pre-merge-commit]
minimum_pre_commit_version: "3.2.0"
- id: forbid-tabs
name: No-tabs checker
description: "Forbid files containing tabs to be committed"
entry: forbid_tabs
language: python
types: [text]
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
stages: [pre-commit, pre-push, pre-merge-commit]
minimum_pre_commit_version: "3.2.0"
- id: remove-tabs
name: Tabs remover
description: "Replace tabs by whitespaces before committing"
entry: remove_tabs
language: python
args: [ --whitespaces-count, '4' ]
types: [text]
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
stages: [pre-commit, pre-push, pre-merge-commit]
minimum_pre_commit_version: "3.2.0"
- id: chmod
name: Set file permissions
entry: pre_commit_chmod
language: python
- 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
types: [text]