Skip to content

Commit

Permalink
chore: configure stable rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Riateche committed Nov 8, 2024
1 parent fc056ff commit 5919ea7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 58 deletions.
37 changes: 5 additions & 32 deletions .github/workflows/ci-pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,39 +19,12 @@ jobs:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-03-01
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-07-23
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2024-03-26
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2024-08-04
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.66.1
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.73.0
components: rustfmt, clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
profile: default
toolchain: 1.82.0
components: rustfmt, clippy
- name: Install Rust versions
run: |
rustup install 1.66.1
rustup install 1.73.0
- name: Install protoc
uses: arduino/setup-protoc@v3
- uses: actions/checkout@v4
Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- id: cargo-fmt-remote-executor
name: Cargo format for remote executor
language: "rust"
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./governance/remote_executor/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.66.1 fmt --manifest-path ./governance/remote_executor/Cargo.toml --all
pass_filenames: false
files: governance/remote_executor
- id: cargo-clippy-remote-executor
Expand All @@ -52,7 +52,7 @@ repos:
- id: cargo-fmt-cosmwasm
name: Cargo format for cosmwasm contract
language: "rust"
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./target_chains/cosmwasm/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.82.0 fmt --manifest-path ./target_chains/cosmwasm/Cargo.toml --all
pass_filenames: false
files: target_chains/cosmwasm
- id: cargo-clippy-cosmwasm
Expand All @@ -65,7 +65,7 @@ repos:
- id: cargo-fmt-hermes
name: Cargo format for Hermes
language: "rust"
entry: cargo +nightly-2024-03-26 fmt --manifest-path ./apps/hermes/server/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.82.0 fmt --manifest-path ./apps/hermes/server/Cargo.toml --all
pass_filenames: false
files: apps/hermes
- id: cargo-clippy-hermes
Expand All @@ -78,7 +78,7 @@ repos:
- id: cargo-fmt-fortuna
name: Cargo format for Fortuna
language: "rust"
entry: cargo +nightly-2023-07-23 fmt --manifest-path ./apps/fortuna/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.82.0 fmt --manifest-path ./apps/fortuna/Cargo.toml --all
pass_filenames: false
files: apps/fortuna
- id: cargo-clippy-fortuna
Expand All @@ -91,7 +91,7 @@ repos:
- id: cargo-fmt-message-buffer
name: Cargo format for message buffer contract
language: "rust"
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./pythnet/message_buffer/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.66.1 fmt --manifest-path ./pythnet/message_buffer/Cargo.toml --all
pass_filenames: false
files: pythnet/message_buffer
- id: cargo-clippy-message-buffer
Expand All @@ -104,7 +104,7 @@ repos:
- id: cargo-fmt-pythnet-sdk
name: Cargo format for pythnet SDK
language: "rust"
entry: cargo +nightly-2024-08-04 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.82.0 fmt --manifest-path ./pythnet/pythnet_sdk/Cargo.toml --all
pass_filenames: false
files: pythnet/pythnet_sdk
- id: cargo-clippy-pythnet-sdk
Expand All @@ -117,7 +117,7 @@ repos:
- id: cargo-fmt-pyth-solana-receiver
name: Cargo format for solana target chain contract
language: "rust"
entry: cargo +nightly-2023-03-01 fmt --manifest-path ./target_chains/solana/Cargo.toml --all -- --config-path rustfmt.toml
entry: cargo +1.73.0 fmt --manifest-path ./target_chains/solana/Cargo.toml --all
pass_filenames: false
files: target_chains/solana
- id: cargo-clippy-pyth-solana-receiver
Expand Down
19 changes: 0 additions & 19 deletions rustfmt.toml

This file was deleted.

0 comments on commit 5919ea7

Please sign in to comment.