forked from sql-machine-learning/sqlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.32 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
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
59
60
repos:
- repo: git://github.com/dnephin/pre-commit-golang
rev: v0.3.5
hooks:
- id: go-fmt
- id: go-lint
- id: validate-toml
- id: no-go-testing
- repo: local
hooks:
- id: copyright_checker
name: copyright_checker
entry: python ./scripts/pre-commit/copyright.py
language: system
files: \.(go|py|sh)$
- repo: local
hooks:
- id: documentation_checker
name: documentation_checker
entry: bash ./scripts/pre-commit/docgen.sh
language: system
- repo: local
hooks:
- id: google_style_java
name: google_style_java
entry: bash ./scripts/pre-commit/google_java_format.sh
language: system
files: \.(java)$
verbose: true
- repo: local
hooks:
- id: jsbeautifier
name: jsbeautifier
entry: bash ./scripts/pre-commit/jsbeautifier.sh
language: system
files: \.(js)$
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.29.0
hooks:
- id: yapf
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.21
hooks:
- id: isort
- repo: local
hooks:
- id: pylint
name: pylint
entry: bash ./scripts/pre-commit/pylint.sh
language: system
files: \.py$
verbose: true
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: bash ./scripts/pre-commit/shellcheck.sh
language: system
files: \.(bash|sh)$
verbose: true