1
1
---
2
- # See https://pre-commit.com for more information
3
2
fail_fast : true
4
- # See https://pre-commit.com/hooks.html for more hooks
5
3
repos :
6
4
- repo : https://github.com/pre-commit/pre-commit-hooks
7
- rev : v4.2 .0
5
+ rev : 2c9f875913ee60ca25ce70243dc24d5b6415598c # 4.6 .0
8
6
hooks :
9
7
- id : trailing-whitespace
10
8
# Generated file
@@ -16,36 +14,38 @@ repos:
16
14
- id : detect-private-key
17
15
18
16
- repo : https://github.com/doublify/pre-commit-rust
19
- rev : v1 .0
17
+ rev : eeee35a89e69d5772bdee97db1a6a898467b686e # 1 .0
20
18
hooks :
21
19
- id : fmt
22
20
args : ["--all", "--", "--check"]
23
21
- id : clippy
24
22
args : ["--all-targets", "--", "-D", "warnings"]
25
23
26
24
- repo : https://github.com/adrienverge/yamllint
27
- rev : v1.26.3
25
+ rev : 81e9f98ffd059efe8aa9c1b1a42e5cce61b640c6 # 1.35.1
28
26
hooks :
29
27
- id : yamllint
30
28
31
29
- repo : https://github.com/igorshubovych/markdownlint-cli
32
- rev : v0.31.1
30
+ rev : f295829140d25717bc79368d3f966fc1f67a824f # 0.41.0
33
31
hooks :
34
32
- id : markdownlint
35
33
36
- - repo : https://github.com/PyCQA/flake8
37
- rev : 4.0.1
34
+ - repo : https://github.com/koalaman/shellcheck-precommit
35
+ rev : 2491238703a5d3415bb2b7ff11388bf775372f29 # 0.10.0
38
36
hooks :
39
- - id : flake8
37
+ - id : shellcheck
38
+ args : ["--severity=info"]
40
39
41
- - repo : https://github.com/pre-commit/mirrors-prettier
42
- rev : v2 .7.1
40
+ - repo : https://github.com/rhysd/actionlint
41
+ rev : 62dc61a45fc95efe8c800af7a557ab0b9165d63b # 1 .7.1
43
42
hooks :
44
- - id : prettier
45
- files : ^web/
46
- additional_dependencies :
47
- # This should match prettier devDependency in web/package.json
48
-
43
+ - id : actionlint
44
+
45
+ - repo : https://github.com/hadolint/hadolint
46
+ rev : b3555ba9c2bfd9401e79f2f0da68dd1ae38e10c7 # 2.12.0
47
+ hooks :
48
+ - id : hadolint
49
49
50
50
- repo : local
51
51
hooks :
@@ -56,34 +56,39 @@ repos:
56
56
entry : cargo xtask gen-man
57
57
stages : [commit, merge-commit, manual]
58
58
pass_filenames : false
59
+
59
60
- id : gen-comp
60
61
name : gen-comp
61
62
files : ^rust/stackablectl/
62
63
language : system
63
64
entry : cargo xtask gen-comp
64
65
stages : [commit, merge-commit, manual]
65
66
pass_filenames : false
67
+
66
68
- id : gen-openapi
67
69
name : gen-openapi
68
70
files : ^web/
69
71
language : system
70
72
entry : cargo xtask gen-openapi
71
73
stages : [commit, merge-commit, manual]
72
74
pass_filenames : false
75
+
73
76
- id : gen-ctl-readme
74
77
name : gen-ctl-readme
75
78
files : ^rust/stackablectl/
76
79
language : system
77
80
entry : cargo xtask gen-ctl-readme
78
81
stages : [commit, merge-commit, manual]
79
82
pass_filenames : false
83
+
80
84
- id : gen-docs
81
85
name : gen-docs
82
86
files : ^rust/stackablectl/
83
87
language : system
84
88
entry : cargo xtask gen-docs
85
89
stages : [commit, merge-commit, manual]
86
90
pass_filenames : false
91
+
87
92
- id : gen-cargo-nix
88
93
name : gen-cargo-nix
89
94
files : ^Cargo\.lock|go\.mod$
0 commit comments