just: Update check target to be pre-commit ready

This commit is contained in:
2022-06-13 22:54:19 +02:00
parent 7363ed48b4
commit 67c3e40108

View File

@@ -2,7 +2,7 @@ set positional-arguments
target := "x86_64-unknown-linux-musl" target := "x86_64-unknown-linux-musl"
check: test check: fmt-check lint test
cargo check cargo check
cargo fmt --check cargo fmt --check
cargo clippy --no-deps -- -Dwarnings cargo clippy --no-deps -- -Dwarnings
@@ -11,8 +11,12 @@ fmt:
cargo fmt cargo fmt
git ls-files | grep '\.py$' | xargs black git ls-files | grep '\.py$' | xargs black
fmt-check:
cargo fmt --check
git ls-files | grep '\.py$' | xargs black --check
lint: lint:
cargo clippy --no-deps cargo clippy --no-deps -- -Dwarnings
lint-fix: lint-fix:
cargo clippy --no-deps --fix cargo clippy --no-deps --fix