/
.pre-commit-config.yaml
63 lines (59 loc) · 1.61 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
repos:
- repo: local
hooks:
# These run on the default stages (pre-commit)
- id: py3-deps
name: "[py3] venv Dependencies"
always_run: true
language: script
entry: ./ops/check_venv_deps.sh
stages: [commit]
- id: py3-type
name: "[py3] Type Checking"
types: [file, python]
entry: ./ops/typecheck_py3.sh
language: script
stages: [commit]
- id: py3-lint
name: "[py3] Formatting & Linting"
types: [file, python]
entry: ./ops/lint_py3.sh --fix
language: script
stages: [commit]
- id: py3-test
name: "[py3] Testing"
types: [file, python]
entry: ./ops/test_py3.sh --relevant
language: script
stages: [commit]
- id: node-lint
name: "[node] Formatting & Linting"
types: [file, javascript]
entry: ./ops/lint_node.sh --fix
language: script
stages: [commit]
- id: node-test
name: "[node] Testing"
types: [file, javascript]
entry: ./ops/test_node.sh
language: script
stages: [commit]
- id: bash-lint
name: "[bash] Formatting & Linting"
types: [file, shell]
entry: ./ops/lint_bash.sh
language: script
stages: [commit]
# These run as post-checkout
- id: py3-deps
name: "[py3] Updating dependencies"
entry: ./ops/update_venv_deps.sh
language: script
always_run: true
stages: [post-checkout]
- id: gcloud-sdk-version
name: "Checking Google Cloud SDK Version"
entry: ./ops/check_sdk_version.sh
language: script
always_run: true
stages: [post-checkout]