From 07dc7c9f4e237149c704febd8acd037c9cfdd516 Mon Sep 17 00:00:00 2001 From: Robsdedude Date: Mon, 21 Jul 2025 16:53:58 +0200 Subject: [PATCH] pre-commit: use local rust steps --- .pre-commit-config.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b69cf48..003d5b5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,12 +19,22 @@ repos: - batch - id: trailing-whitespace args: [ --markdown-linebreak-ext=md ] - - repo: https://github.com/doublify/pre-commit-rust - rev: v1.0 + - repo: local hooks: - - id: fmt - - id: cargo-check - - id: clippy + - id: cargo-fmt + name: cargo fmt + entry: cargo fmt + language: system + types: [rust] + pass_filenames: false + - repo: local + hooks: + - id: cargo-clippy + name: cargo clippy + entry: cargo clippy --all-features --tests -- -D warnings + language: system + types: [rust] + pass_filenames: false - repo: local hooks: - id: isort