Skip to content

Commit 2cd27d1

Browse files
authored
chore: fix pre-commit-config (#2834)
1 parent 71d6a89 commit 2cd27d1

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -34,59 +34,59 @@ repos:
3434
- id: cargo-fmt-remote-executor
3535
name: Cargo format for remote executor
3636
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
3838
pass_filenames: false
3939
files: governance/remote_executor
4040
- id: cargo-clippy-remote-executor
4141
name: Cargo clippy for remote executor
4242
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
4444
pass_filenames: false
4545
files: governance/remote_executor
4646
# Hooks for cosmwasm contract
4747
- id: cargo-fmt-cosmwasm
4848
name: Cargo format for cosmwasm contract
4949
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
5151
pass_filenames: false
5252
files: target_chains/cosmwasm
5353
- id: cargo-clippy-cosmwasm
5454
name: Cargo clippy for cosmwasm contract
5555
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
5757
pass_filenames: false
5858
files: target_chains/cosmwasm
5959
# Hooks for Hermes
6060
- id: cargo-fmt-hermes
6161
name: Cargo format for Hermes
6262
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
6464
pass_filenames: false
6565
files: apps/hermes
6666
- id: cargo-clippy-hermes
6767
name: Cargo clippy for Hermes
6868
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
7070
pass_filenames: false
7171
files: apps/hermes
7272
# Hooks for Quorum
7373
- id: cargo-fmt-quorum
7474
name: Cargo format for Quorum
7575
language: "rust"
76-
entry: cargo +1.87.0 fmt --manifest-path ./apps/quorum/Cargo.toml --all
76+
entry: cargo fmt -p quorum
7777
pass_filenames: false
7878
files: apps/quorum
7979
- id: cargo-clippy-quorum
8080
name: Cargo clippy for Quorum
8181
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
8383
pass_filenames: false
8484
files: apps/quorum
8585
# Hooks for Fortuna
8686
- id: cargo-fmt-fortuna
8787
name: Cargo format for Fortuna
8888
language: "rust"
89-
entry: cargo +1.82.0 fmt --manifest-path ./apps/fortuna/Cargo.toml --all
89+
entry: cargo fmt -p fortuna
9090
pass_filenames: false
9191
files: apps/fortuna
9292
- id: cargo-sqlx-fortuna
@@ -98,71 +98,71 @@ repos:
9898
- id: cargo-clippy-fortuna
9999
name: Cargo clippy for Fortuna
100100
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
102102
pass_filenames: false
103103
files: apps/fortuna
104104
# Hooks for message buffer contract
105105
- id: cargo-fmt-message-buffer
106106
name: Cargo format for message buffer contract
107107
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
109109
pass_filenames: false
110110
files: pythnet/message_buffer
111111
- id: cargo-clippy-message-buffer
112112
name: Cargo clippy for message buffer contract
113113
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
115115
pass_filenames: false
116116
files: pythnet/message_buffer
117117
# Hooks for pythnet_sdk
118118
- id: cargo-fmt-pythnet-sdk
119119
name: Cargo format for pythnet SDK
120120
language: "rust"
121-
entry: cargo +1.82.0 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all
121+
entry: cargo fmt -p pythnet-sdk
122122
pass_filenames: false
123123
files: pythnet/pythnet_sdk
124124
- id: cargo-clippy-pythnet-sdk
125125
name: Cargo clippy for pythnet SDK
126126
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
128128
pass_filenames: false
129129
files: pythnet/pythnet_sdk
130130
# Hooks for solana receiver contract
131131
- id: cargo-fmt-pyth-solana-receiver
132132
name: Cargo format for solana target chain contract
133133
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
135135
pass_filenames: false
136136
files: target_chains/solana
137137
- id: cargo-clippy-pyth-solana-receiver
138138
name: Cargo clippy for solana target chain contract
139139
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
141141
pass_filenames: false
142142
files: target_chains/solana
143-
# For Lazer
143+
# Hooks for Lazer
144144
- id: cargo-fmt-lazer
145145
name: Cargo format for Lazer
146146
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
148148
pass_filenames: false
149149
files: lazer
150150
- id: cargo-clippy-lazer
151151
name: Cargo clippy for Lazer
152152
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
154154
pass_filenames: false
155155
files: lazer
156156
- id: cargo-fmt-stylus-sdk
157157
name: Cargo format for Stylus SDK
158158
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
160160
pass_filenames: false
161161
files: target_chains/ethereum/sdk/stylus
162162
- id: cargo-clippy-stylus-sdk
163163
name: Cargo clippy for Stylus SDK
164164
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
166166
pass_filenames: false
167167
files: target_chains/ethereum/sdk/stylus
168168
- id: fmt-aptos-lazer
@@ -174,6 +174,6 @@ repos:
174174
- id: lint-aptos-lazer
175175
name: Lint Aptos Lazer contracts
176176
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
178178
pass_filenames: false
179179
files: lazer/contracts/aptos

0 commit comments

Comments
 (0)