From 7036264f5b94beeef59713cc72bcabb60de2a384 Mon Sep 17 00:00:00 2001 From: Bela Stoyan Date: Sun, 2 Jun 2024 12:44:14 +0200 Subject: [PATCH] run cargo in default env --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9db8609..5f73e4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,14 +35,14 @@ repos: - id: cargo-fmt-conda name: cargo-fmt-conda description: "Run `cargo fmt` for formatting rust sources." - entry: cargo fmt -- + entry: pixi run -e default cargo fmt -- language: system require_serial: false types: [rust] - id: clippy-conda name: clippy-conda description: "Run `clippy` to lint rust sources." - entry: cargo clippy --all-targets --all-features --workspace -- -D warnings + entry: pixi run -e default cargo clippy --all-targets --all-features --workspace -- -D warnings pass_filenames: false language: system require_serial: false