From 257c8ca7b4502d8dc7467b644fb85c5fc3836972 Mon Sep 17 00:00:00 2001 From: Mathieu Lemay Date: Sun, 12 Jan 2020 16:03:33 -0500 Subject: [PATCH] Use `types` instead of `files` --- .pre-commit-hooks.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 2c15f3a..9ddb1e1 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,19 +3,19 @@ description: Format files with cargo fmt. entry: cargo fmt -- language: system - files: \.rs$ + types: [rust] args: [] - id: cargo-check name: cargo check description: Check the package for errors. entry: cargo check language: system - files: \.rs$ + types: [rust] pass_filenames: false - id: clippy name: clippy description: Lint rust sources entry: cargo clippy -- -D warnings language: system - files: \.rs$ + types: [rust] pass_filenames: false