From 136c79f41a49256b343a07c3ad51316f451aa860 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sun, 5 May 2019 20:17:37 -0300 Subject: [PATCH 1/2] add cargo check hook --- .pre-commit-hooks.yaml | 7 +++++++ hooks.yaml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f14a629..22bec7d 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -5,3 +5,10 @@ language: system files: \.rs$ args: [] +- id: cargo-check + name: cargo check + description: Check the package for errors. + entry: cargo check + language: system + files: \.rs$ + pass_filenames: false diff --git a/hooks.yaml b/hooks.yaml index f14a629..22bec7d 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -5,3 +5,10 @@ language: system files: \.rs$ args: [] +- id: cargo-check + name: cargo check + description: Check the package for errors. + entry: cargo check + language: system + files: \.rs$ + pass_filenames: false From f1a2d283c874a07808c63f43398027cc977b7ea8 Mon Sep 17 00:00:00 2001 From: Francisco Giordano Date: Sun, 5 May 2019 20:19:52 -0300 Subject: [PATCH 2/2] add cargo-check hook to readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index cf44f5f..f15e180 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,5 @@ rev: master hooks: - id: fmt + - id: cargo-check ```