add flake8 and clean justfile

This commit is contained in:
Anand Balakrishnan 2023-09-01 14:45:20 -07:00
parent b58f67b272
commit ccd87fc22a
No known key found for this signature in database
3 changed files with 27 additions and 20 deletions

View file

@ -4,13 +4,12 @@ build *ARGS:
test *ARGS:
cargo test {{ARGS}}
check:
cargo +nightly clippy
cd pyargus && stubtest argus
cd pyargus && mypy .
cd pyargus && flake8
cd pyargus && ruff .
pytest *ARGS:
cd pyargus && pytest {{ARGS}}
check:
pre-commit run -a
cd pyargus && stubtest argus
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
@ -20,12 +19,6 @@ test-coverage $CARGO_INCREMENTAL="0" $RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Co
html-cov: test-coverage
grcov . -s . --binary-path ./target/debug/ -t html --branch --ignore-not-existing -o ./target/debug/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 --no-deps
fd -e md . doc/ -x rustdoc {}