-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-hooks.yaml
More file actions
58 lines (51 loc) · 1.76 KB
/
Copy path.pre-commit-hooks.yaml
File metadata and controls
58 lines (51 loc) · 1.76 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- id: check-utf8-wihtout-byte-order-marker
name: check-utf8-wihtout-byte-order-marker
description: ensure files are utf-8 *without* BOM.
entry: check-utf8-wihtout-byte-order-marker
language: python
types: [text]
- id: check-single-newline-end-of-file
name: check-single-newline-end-of-file
description: ensures that a file is either empty, or ends with only one newline.
entry: check-single-newline-end-of-file
language: python
types: [text]
# stages: [pre-commit, pre-push, manual]
# minimum_pre_commit_version: 3.2.0
- id: check-no-trailing-spaces
name: check-no-trailing-spaces
description: ensure files don't contain trailing spaces.
entry: check-no-trailing-spaces
language: python
types: [text]
- id: check-only-spaces
name: check-only-spaces
description: ensure files only contain spaces.
entry: check-only-spaces
language: python
types: [text]
- id: check-copyright
name: check-copyright
description: ensure files start with copyright.
entry: check-copyright
language: python
types: [text]
# /!Warning!\
# exclude_types/exclude will be overriden if it is also used in the final .pre-commit-config.yaml file
exclude_types: [json] # Can't have comment
- id: check-iddn
name: check-iddn
description: ensure files start with iddn.
entry: check-iddn
language: python
types: [text]
# /!Warning!\
# exclude_types/exclude will be overriden if it is also used in the final .pre-commit-config.yaml file
exclude_types: [json] # Can't have comment
- id: check-uplugin
name: check-uplugin
description: ensure files are uplugin.
entry: check-uplugin
language: python
types: [text]
files: \.uplugin$