forked from TRI-ML/dgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
70 lines (67 loc) · 1.9 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
61
62
63
64
65
66
67
68
69
70
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3
# Node 18+ requires GLIBC 2.18 which is only available by default in
# Ubuntu 18.10+. Fix to Node 17 while we still use Ubuntu 18.04.
node: 17.0.0
default_stages: [commit]
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.0.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-json
- repo: https://github.com/zricethezav/gitleaks
rev: v8.10.3
hooks:
- id: gitleaks-docker
- repo: https://github.com/Lucas-C/pre-commit-hooks-nodejs
rev: v1.1.2
hooks:
- id: htmlhint
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
exclude: _pb2\.py$
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.7.1
hooks:
- id: prettier
types: [markdown]
args: [--embedded-language-formatting=off, --prose-wrap=always]
- repo: https://github.com/PyCQA/pylint
rev: v2.14.5
hooks:
- id: pylint
args: [--rcfile=.pylintrc]
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.17
hooks:
- id: shellcheck
- id: shfmt
- repo: https://github.com/adrienverge/yamllint
rev: v1.27.1
hooks:
- id: yamllint
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
# pre-commit requires that we split args at whitespce boundaries.
args: [
--style, .style.yapf,
-i,
-e, '*pb2.py',
-e, '*pb2_grpc.py',
-e, '*eggs*.py',
-e, '*env*',
-e, 'build/*'
]
additional_dependencies: [toml]