@@ -34,59 +34,59 @@ repos:
34
34
- id : cargo-fmt-remote-executor
35
35
name : Cargo format for remote executor
36
36
language : " rust"
37
- entry : cargo +1.73.0 fmt --manifest-path ./ governance/remote_executor/Cargo.toml --all
37
+ entry : cd governance/remote_executor && cargo fmt
38
38
pass_filenames : false
39
39
files : governance/remote_executor
40
40
- id : cargo-clippy-remote-executor
41
41
name : Cargo clippy for remote executor
42
42
language : " rust"
43
- entry : cargo +1.73.0 clippy --manifest-path ./ governance/remote_executor/Cargo.toml --tests -- --deny warnings
43
+ entry : cd governance/remote_executor && cargo clippy --all-targets -- --deny warnings
44
44
pass_filenames : false
45
45
files : governance/remote_executor
46
46
# Hooks for cosmwasm contract
47
47
- id : cargo-fmt-cosmwasm
48
48
name : Cargo format for cosmwasm contract
49
49
language : " rust"
50
- entry : cargo +1.82.0 fmt --manifest-path ./ target_chains/cosmwasm/Cargo.toml --all
50
+ entry : cd target_chains/cosmwasm && cargo fmt
51
51
pass_filenames : false
52
52
files : target_chains/cosmwasm
53
53
- id : cargo-clippy-cosmwasm
54
54
name : Cargo clippy for cosmwasm contract
55
55
language : " rust"
56
- entry : cargo +1.82.0 clippy --manifest-path ./ target_chains/cosmwasm/Cargo.toml --tests -- --deny warnings
56
+ entry : cd target_chains/cosmwasm && cargo clippy --all-targets -- --deny warnings
57
57
pass_filenames : false
58
58
files : target_chains/cosmwasm
59
59
# Hooks for Hermes
60
60
- id : cargo-fmt-hermes
61
61
name : Cargo format for Hermes
62
62
language : " rust"
63
- entry : cargo +1.82.0 fmt --manifest-path ./ apps/hermes/server/Cargo.toml --all
63
+ entry : cd apps/hermes/server && cargo fmt
64
64
pass_filenames : false
65
65
files : apps/hermes
66
66
- id : cargo-clippy-hermes
67
67
name : Cargo clippy for Hermes
68
68
language : " rust"
69
- entry : cargo +1.82.0 clippy --manifest-path ./ apps/hermes/server/Cargo.toml --tests -- --deny warnings
69
+ entry : cd apps/hermes/server && cargo clippy --all-targets -- --deny warnings
70
70
pass_filenames : false
71
71
files : apps/hermes
72
72
# Hooks for Quorum
73
73
- id : cargo-fmt-quorum
74
74
name : Cargo format for Quorum
75
75
language : " rust"
76
- entry : cargo +1.87.0 fmt --manifest-path ./apps/ quorum/Cargo.toml --all
76
+ entry : cargo fmt -p quorum
77
77
pass_filenames : false
78
78
files : apps/quorum
79
79
- id : cargo-clippy-quorum
80
80
name : Cargo clippy for Quorum
81
81
language : " rust"
82
- entry : cargo +1.87.0 clippy --manifest-path ./apps/ quorum/Cargo.toml --tests -- --deny warnings
82
+ entry : cargo clippy -p quorum --all-targets -- --deny warnings
83
83
pass_filenames : false
84
84
files : apps/quorum
85
85
# Hooks for Fortuna
86
86
- id : cargo-fmt-fortuna
87
87
name : Cargo format for Fortuna
88
88
language : " rust"
89
- entry : cargo +1.82.0 fmt --manifest-path ./apps/ fortuna/Cargo.toml --all
89
+ entry : cargo fmt -p fortuna
90
90
pass_filenames : false
91
91
files : apps/fortuna
92
92
- id : cargo-sqlx-fortuna
@@ -98,71 +98,71 @@ repos:
98
98
- id : cargo-clippy-fortuna
99
99
name : Cargo clippy for Fortuna
100
100
language : " rust"
101
- entry : cargo +1.82.0 clippy --manifest-path ./apps/ fortuna/Cargo.toml --tests -- --deny warnings
101
+ entry : cargo clippy -p fortuna --all-targets -- --deny warnings
102
102
pass_filenames : false
103
103
files : apps/fortuna
104
104
# Hooks for message buffer contract
105
105
- id : cargo-fmt-message-buffer
106
106
name : Cargo format for message buffer contract
107
107
language : " rust"
108
- entry : cargo +1.66.1 fmt --manifest-path ./ pythnet/message_buffer/Cargo.toml --all
108
+ entry : cd pythnet/message_buffer && cargo fmt
109
109
pass_filenames : false
110
110
files : pythnet/message_buffer
111
111
- id : cargo-clippy-message-buffer
112
112
name : Cargo clippy for message buffer contract
113
113
language : " rust"
114
- entry : cargo +1.66.1 clippy --manifest-path ./ pythnet/message_buffer/Cargo.toml --tests -- --deny warnings
114
+ entry : cd pythnet/message_buffer && cargo clippy --all-targets -- --deny warnings
115
115
pass_filenames : false
116
116
files : pythnet/message_buffer
117
117
# Hooks for pythnet_sdk
118
118
- id : cargo-fmt-pythnet-sdk
119
119
name : Cargo format for pythnet SDK
120
120
language : " rust"
121
- entry : cargo +1.82.0 fmt --manifest-path ./ pythnet/pythnet_sdk/Cargo.toml --all
121
+ entry : cargo fmt -p pythnet-sdk
122
122
pass_filenames : false
123
123
files : pythnet/pythnet_sdk
124
124
- id : cargo-clippy-pythnet-sdk
125
125
name : Cargo clippy for pythnet SDK
126
126
language : " rust"
127
- entry : cargo +1.82.0 clippy --manifest-path ./ pythnet/pythnet_sdk/Cargo.toml --tests -- --deny warnings
127
+ entry : cargo clippy -p pythnet-sdk --all-targets -- --deny warnings
128
128
pass_filenames : false
129
129
files : pythnet/pythnet_sdk
130
130
# Hooks for solana receiver contract
131
131
- id : cargo-fmt-pyth-solana-receiver
132
132
name : Cargo format for solana target chain contract
133
133
language : " rust"
134
- entry : cargo +1.73.0 fmt --manifest-path ./ target_chains/solana/Cargo.toml --all
134
+ entry : cd target_chains/solana && cargo fmt
135
135
pass_filenames : false
136
136
files : target_chains/solana
137
137
- id : cargo-clippy-pyth-solana-receiver
138
138
name : Cargo clippy for solana target chain contract
139
139
language : " rust"
140
- entry : cargo +1.73.0 clippy --manifest-path ./ target_chains/solana/Cargo.toml --tests -- --deny warnings
140
+ entry : cd target_chains/solana/ && cargo clippy --all-targets -- --deny warnings
141
141
pass_filenames : false
142
142
files : target_chains/solana
143
- # For Lazer
143
+ # Hooks for Lazer
144
144
- id : cargo-fmt-lazer
145
145
name : Cargo format for Lazer
146
146
language : " rust"
147
- entry : cargo +1.82.0 fmt --manifest-path ./ lazer/Cargo.toml --all
147
+ entry : cargo fmt -p pyth-lazer-protocol -p pyth- lazer-client -p pyth-lazer-publisher-sdk
148
148
pass_filenames : false
149
149
files : lazer
150
150
- id : cargo-clippy-lazer
151
151
name : Cargo clippy for Lazer
152
152
language : " rust"
153
- entry : cargo +1.82.0 clippy --manifest-path ./ lazer/Cargo.toml --all-targets -- --deny warnings
153
+ entry : cargo clippy -p pyth-lazer-protocol -p pyth- lazer-client -p pyth-lazer-publisher-sdk --all-targets -- --deny warnings
154
154
pass_filenames : false
155
155
files : lazer
156
156
- id : cargo-fmt-stylus-sdk
157
157
name : Cargo format for Stylus SDK
158
158
language : " rust"
159
- entry : cargo +1.82.0 fmt --manifest-path ./ target_chains/ethereum/sdk/stylus/Cargo.toml --all
159
+ entry : cd target_chains/ethereum/sdk/stylus && cargo fmt
160
160
pass_filenames : false
161
161
files : target_chains/ethereum/sdk/stylus
162
162
- id : cargo-clippy-stylus-sdk
163
163
name : Cargo clippy for Stylus SDK
164
164
language : " rust"
165
- entry : cargo +1.82.0 clippy --manifest-path ./ target_chains/ethereum/sdk/stylus/Cargo.toml --all-targets -- --deny warnings
165
+ entry : cd target_chains/ethereum/sdk/stylus && cargo clippy --all-targets -- --deny warnings
166
166
pass_filenames : false
167
167
files : target_chains/ethereum/sdk/stylus
168
168
- id : fmt-aptos-lazer
@@ -174,6 +174,6 @@ repos:
174
174
- id : lint-aptos-lazer
175
175
name : Lint Aptos Lazer contracts
176
176
language : system
177
- entry : aptos move lint --package-dir lazer/contracts/aptos --check-test-code -- dev
177
+ entry : aptos move lint --package-dir lazer/contracts/aptos --dev
178
178
pass_filenames : false
179
179
files : lazer/contracts/aptos
0 commit comments