-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-hooks.yaml
48 lines (43 loc) · 1.34 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
46
47
48
# a git repo containing pre-commit plugins must contain a
# .pre-commit-hooks.yaml file that tells pre-commit which hooks are provided
# more details at https://pre-commit.com/#creating-new-hooks
- id: say-hello
name: say hello
description: a template to show how to implement a pre-commit hook
language: python
entry: say-hello
require_serial: true
pass_filenames: false
args: ['OpenMMLab']
- id: check-algo-readme
name: check algorithm readme
description: check whether the abstract and icon exist in the algorithm readme
language: python
entry: check-algo-readme
require_serial: true
pass_filenames: false
- id: check-copyright
name: check copyright
description: check whether the code contains copyright
language: python
entry: check-copyright
require_serial: true
pass_filenames: false
- id: check-ecosystem-validity
name: check ecosystem validity
description: check validity of yaml
language: python
entry: check-ecosystem-validity
types: [yaml]
require_serial: false
pass_filenames: false
additional_dependencies:
- cerberus
- id: remove-improper-eol-in-cn-docs
name: remove improper eol in cn docs
description: Remove the end_of_line characters that split natural paragraphs in Chinese docs
entry: remove-eol-characters
language: python
files: .*\.md$
pass_filenames: true
require_serial: true