Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Add rust_fmt and clippy scripts. (#669)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyalesokhin-starkware committed Jun 28, 2023
1 parent d4d90ee commit df4129c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
components: rustfmt, clippy
toolchain: nightly-2022-11-03
- uses: Swatinem/rust-cache@v2
- run: |
cargo +nightly-2022-11-03 fmt --all -- --check
cargo clippy --all-targets --all-features
- run: scripts/rust_fmt.sh --check
- run: scripts/clippy.sh

run-tests:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions scripts/clippy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cargo clippy "$@" --all-targets --all-features -- -D warnings -D future-incompatible \
-D nonstandard-style -D rust-2018-idioms -D unused
3 changes: 3 additions & 0 deletions scripts/rust_fmt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

cargo +nightly-2022-11-03 fmt --all -- "$@"

0 comments on commit df4129c

Please sign in to comment.