build(py): add justfile recipes for formatting and checking
This commit is contained in:
parent
9f674bd385
commit
c3d4bad161
1 changed files with 10 additions and 0 deletions
10
justfile
10
justfile
|
|
@ -4,6 +4,13 @@ build *ARGS:
|
||||||
test *ARGS:
|
test *ARGS:
|
||||||
cargo 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":
|
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
|
fd -e gcda -e profraw --no-ignore -x rm
|
||||||
cargo +nightly build
|
cargo +nightly build
|
||||||
|
|
@ -14,6 +21,9 @@ html-cov: test-coverage
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
fd -e rs -x rustfmt +nightly {}
|
fd -e rs -x rustfmt +nightly {}
|
||||||
|
cd pyargus && ruff --fix --exit-non-zero-on-fix .
|
||||||
|
cd pyargus && isort .
|
||||||
|
cd pyargus && black .
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
cargo doc
|
cargo doc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue