just: Update check target to be pre-commit ready
This commit is contained in:
8
Justfile
8
Justfile
@@ -2,7 +2,7 @@ set positional-arguments
|
||||
|
||||
target := "x86_64-unknown-linux-musl"
|
||||
|
||||
check: test
|
||||
check: fmt-check lint test
|
||||
cargo check
|
||||
cargo fmt --check
|
||||
cargo clippy --no-deps -- -Dwarnings
|
||||
@@ -11,8 +11,12 @@ fmt:
|
||||
cargo fmt
|
||||
git ls-files | grep '\.py$' | xargs black
|
||||
|
||||
fmt-check:
|
||||
cargo fmt --check
|
||||
git ls-files | grep '\.py$' | xargs black --check
|
||||
|
||||
lint:
|
||||
cargo clippy --no-deps
|
||||
cargo clippy --no-deps -- -Dwarnings
|
||||
|
||||
lint-fix:
|
||||
cargo clippy --no-deps --fix
|
||||
|
||||
Reference in New Issue
Block a user