Skip to content

Commit 627c0fb

Browse files
authored
Merge pull request #5320 from bryan-cox/5318
Improve pre-commit UX
2 parents c267934 + b33199c commit 627c0fb

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

.pre-commit-config.yaml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,66 @@
1+
default_stages: [pre-commit, pre-push]
2+
default_install_hook_types: [pre-commit, pre-push]
13
repos:
24
- repo: https://github.com/gitleaks/gitleaks
35
rev: v8.21.1
46
hooks:
57
- id: gitleaks
8+
stages: [pre-commit]
69
- repo: https://github.com/koalaman/shellcheck-precommit
710
rev: v0.10.0
811
hooks:
912
- id: shellcheck
1013
args: ["--external-sources"]
14+
stages: [pre-commit]
1115
- repo: https://github.com/pre-commit/pre-commit-hooks
1216
rev: v5.0.0
1317
hooks:
1418
- id: end-of-file-fixer
19+
stages: [pre-commit]
1520
- id: trailing-whitespace
21+
stages: [pre-commit]
1622
- id: detect-private-key
23+
stages: [pre-commit]
1724
- repo: https://github.com/pylint-dev/pylint
1825
rev: v3.3.1
1926
hooks:
2027
- id: pylint
2128
exclude: ^hack/boilerplate/boilerplate.py$
29+
stages: [pre-commit]
2230
- repo: https://github.com/jumanjihouse/pre-commit-hooks
2331
rev: 3.0.0
2432
hooks:
25-
- id: forbid-binary
33+
- id: forbid-binary
34+
stages: [pre-commit]
35+
- repo: local
36+
hooks:
37+
- id: make-modules
38+
name: Run make verify-modules
39+
entry: make verify-modules
40+
language: system
41+
stages: [pre-push]
42+
- id: make-gen
43+
name: Run make verify-gen
44+
entry: make verify-gen
45+
language: system
46+
stages: [pre-push]
47+
- id: make-spellcheck
48+
name: Run make verify-shellcheck
49+
entry: make verify-shellcheck
50+
language: system
51+
stages: [ pre-push ]
52+
- id: make-conversions
53+
name: Run make verify-conversions
54+
entry: make verify-conversions
55+
language: system
56+
stages: [ pre-push ]
57+
- id: make-tiltfile
58+
name: Run make verify-tiltfile
59+
entry: make verify-tiltfile
60+
language: system
61+
stages: [ pre-push ]
62+
- id: make-test
63+
name: Run make test
64+
entry: make test
65+
language: system
66+
stages: [pre-push]

0 commit comments

Comments
 (0)