From c3d4bad1617abef74b810145cc664ac268c3bc4f Mon Sep 17 00:00:00 2001 From: Anand Balakrishnan Date: Wed, 3 May 2023 16:39:01 -0700 Subject: [PATCH] build(py): add justfile recipes for formatting and checking --- justfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/justfile b/justfile index 90fe60e..910972b 100644 --- a/justfile +++ b/justfile @@ -4,6 +4,13 @@ build *ARGS: test *ARGS: cargo test {{ARGS}} +check: + cargo +nightly clippy + cd pyargus && mypy . + cd pyargus && flake8 + cd pyargus && ruff . + + test-coverage $CARGO_INCREMENTAL="0" $RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" $RUSTDOCFLAGS="-Cpanic=abort" $LLVM_PROFILE_FILE="argus-%p-%m.profraw": fd -e gcda -e profraw --no-ignore -x rm cargo +nightly build @@ -14,6 +21,9 @@ html-cov: test-coverage fmt: fd -e rs -x rustfmt +nightly {} + cd pyargus && ruff --fix --exit-non-zero-on-fix . + cd pyargus && isort . + cd pyargus && black . doc: cargo doc