diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9942addf3..20c35c127 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: override: true - name: Cache rust cargo artifacts uses: swatinem/rust-cache@v2 - - run: cargo clippy --workspace --tests --examples --benches -- -D warnings + - run: scripts/clippy.sh docs: name: Rust doc comments diff --git a/scripts/README.md b/scripts/README.md index 2036d9fc7..9523e257c 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -6,6 +6,8 @@ and an own build machine. ## Description of scripts +- `clippy.sh` runs `cargo clippy` for all Rust code in the project. + - `../.github/workflows` contains jobs run by GitHub Actions. - `remote_tests_python.sh` rsyncs to a build machine and runs diff --git a/scripts/clippy.sh b/scripts/clippy.sh new file mode 100755 index 000000000..d9cfcd5de --- /dev/null +++ b/scripts/clippy.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# Run clippy for all Rust code in the project. +cargo clippy --workspace --tests --examples --benches -- -D warnings