Skip to content

Commit

Permalink
add a Makefile to run all the CI checks locally
Browse files Browse the repository at this point in the history
this Makefile also allows to format the code and generate the
documentation locally.
  • Loading branch information
amtoine committed Aug 27, 2023
1 parent 2d50115 commit 9fc6a17
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CLIPPY_OPTIONS="-D warnings"

check:
cargo fmt --all -- --check
cargo check --workspace --lib
cargo check --workspace --tests
cargo clippy --workspace -- "${CLIPPY_OPTIONS}"
cargo test --workspace

fmt:
cargo fmt --all

doc:
cargo doc --document-private-items --no-deps --open

0 comments on commit 9fc6a17

Please sign in to comment.