From 67c3e40108b9bff57e04266831fb22e7b7d666d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 13 Jun 2022 22:54:19 +0200 Subject: [PATCH] just: Update check target to be pre-commit ready --- Justfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index c9e2bf0..670a285 100644 --- a/Justfile +++ b/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