Skip to content

Commit 404bc6c

Browse files
authored
[ci] Fix pre-commit (#857)
* Update pre-commit * Update CI rust
1 parent cf7c683 commit 404bc6c

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ jobs:
1414
- uses: actions-rs/toolchain@v1
1515
with:
1616
profile: minimal
17-
toolchain: nightly
17+
toolchain: nightly-2023-03-01
1818
components: rustfmt, clippy
1919
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,86 +21,86 @@ repos:
2121
- id: cargo-fmt-remote-executor
2222
name: Cargo format for remote executor
2323
language: "rust"
24-
entry: cargo +nightly fmt --manifest-path ./governance/remote_executor/Cargo.toml --all -- --config-path rustfmt.toml
24+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./governance/remote_executor/Cargo.toml --all -- --config-path rustfmt.toml
2525
pass_filenames: false
2626
files: governance/remote_executor
2727
- id: cargo-clippy-remote-executor
2828
name: Cargo clippy for remote executor
2929
language: "rust"
30-
entry: cargo +nightly clippy --manifest-path ./governance/remote_executor/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
30+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./governance/remote_executor/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
3131
pass_filenames: false
3232
files: governance/remote_executor
3333
# Hooks for the attester
3434
- id: cargo-fmt-attester
3535
name: Cargo format for attester
3636
language: "rust"
37-
entry: cargo +nightly fmt --manifest-path ./wormhole_attester/Cargo.toml --all -- --config-path rustfmt.toml
37+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./wormhole_attester/Cargo.toml --all -- --config-path rustfmt.toml
3838
pass_filenames: false
3939
files: wormhole_attester
4040
- id: cargo-clippy-attester
4141
name: Cargo clippy for attester
4242
language: "rust"
4343
entry: |
44-
bash -c 'EMITTER_ADDRESS=0 BRIDGE_ADDRESS=0 cargo +nightly clippy --manifest-path \
44+
bash -c 'EMITTER_ADDRESS=0 BRIDGE_ADDRESS=0 cargo +nightly-2023-03-01 clippy --manifest-path \
4545
./wormhole_attester/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings'
4646
pass_filenames: false
4747
files: wormhole_attester
4848
# Hooks for cosmwasm contract
4949
- id: cargo-fmt-cosmwasm
5050
name: Cargo format for cosmwasm contract
5151
language: "rust"
52-
entry: cargo +nightly fmt --manifest-path ./target_chains/cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
52+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./target_chains/cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
5353
pass_filenames: false
5454
files: target_chains/cosmwasm
5555
- id: cargo-clippy-cosmwasm
5656
name: Cargo clippy for cosmwasm contract
5757
language: "rust"
58-
entry: cargo +nightly clippy --manifest-path ./target_chains/cosmwasm/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
58+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./target_chains/cosmwasm/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
5959
pass_filenames: false
6060
files: target_chains/cosmwasm
6161
# Hooks for Hermes
6262
- id: cargo-fmt-hermes
6363
name: Cargo format for Pyth Hermes
6464
language: "rust"
65-
entry: cargo +nightly fmt --manifest-path ./hermes/Cargo.toml --all -- --config-path rustfmt.toml
65+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./hermes/Cargo.toml --all -- --config-path rustfmt.toml
6666
pass_filenames: false
6767
files: hermes
6868
# Hooks for message buffer contract
6969
- id: cargo-fmt-message-buffer
7070
name: Cargo format for message buffer contract
7171
language: "rust"
72-
entry: cargo +nightly fmt --manifest-path ./pythnet/message_buffer/Cargo.toml --all -- --config-path rustfmt.toml
72+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./pythnet/message_buffer/Cargo.toml --all -- --config-path rustfmt.toml
7373
pass_filenames: false
7474
files: pythnet/message_buffer
7575
- id: cargo-clippy-message-buffer
7676
name: Cargo clippy for message buffer contract
7777
language: "rust"
78-
entry: cargo +nightly clippy --manifest-path ./pythnet/message_buffer/Cargo.toml --tests --fix --allow-dirty --allow-staged --features test-bpf -- -D warnings
78+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./pythnet/message_buffer/Cargo.toml --tests --fix --allow-dirty --allow-staged --features test-bpf -- -D warnings
7979
pass_filenames: false
8080
files: pythnet/message_buffer
8181
# Hooks for pythnet_sdk
8282
- id: cargo-fmt-pythnet-sdk
8383
name: Cargo format for pythnet SDK
8484
language: "rust"
85-
entry: cargo +nightly fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all -- --config-path rustfmt.toml
85+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all -- --config-path rustfmt.toml
8686
pass_filenames: false
8787
files: pythnet/pythnet_sdk
8888
- id: cargo-clippy-pythnet-sdk
8989
name: Cargo clippy for pythnet SDK
9090
language: "rust"
91-
entry: cargo +nightly clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
91+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
9292
pass_filenames: false
9393
files: pythnet/pythnet_sdk
9494
# Hooks for solana receiver contract
9595
- id: cargo-fmt-solana-receiver
9696
name: Cargo format for solana target chain contract
9797
language: "rust"
98-
entry: cargo +nightly fmt --manifest-path ./target_chains/solana/Cargo.toml --all -- --config-path rustfmt.toml
98+
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./target_chains/solana/Cargo.toml --all -- --config-path rustfmt.toml
9999
pass_filenames: false
100100
files: target_chains/solana
101101
- id: cargo-clippy-solana-receiver
102102
name: Cargo clippy for solana target chain contract
103103
language: "rust"
104-
entry: cargo +nightly clippy --manifest-path ./target_chains/solana/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
104+
entry: cargo +nightly-2023-03-01 clippy --manifest-path ./target_chains/solana/Cargo.toml --tests --fix --allow-dirty --allow-staged -- -D warnings
105105
pass_filenames: false
106106
files: target_chains/solana

0 commit comments

Comments
 (0)