From 663a0436a9e261a5b97d38a1838484415fa86890 Mon Sep 17 00:00:00 2001 From: Carter Himmel Date: Mon, 4 Sep 2023 19:37:00 -0600 Subject: [PATCH] chore: more custom hooks --- .pre-commit-config.yaml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8f23e0c..c048f37 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,24 +10,26 @@ repos: args: ["--indent=4", "--autofix"] - id: check-added-large-files - # - repo: https://github.com/doublify/pre-commit-rust - # rev: v1.0 - # hooks: - # - id: fmt - # - id: cargo-check - # - id: clippy - - repo: local hooks: - id: format name: format - entry: bash -c 'cargo make format' + description: Format files with cargo make fmt. + entry: cargo make format language: system types: [rust] pass_filenames: false - id: lint name: lint - entry: bash -c 'cargo make lint' + description: Lint files with cargo make lint. + entry: cargo make lint + language: system + types: [rust] + pass_filenames: false + - id: check + name: check + description: Check files with Cargo Check + entry: cargo check language: system types: [rust] pass_filenames: false