From f874f36bc30250162c093e4e160fe0a9572a0140 Mon Sep 17 00:00:00 2001 From: Colin Dean Date: Sun, 18 Dec 2022 21:12:40 -0500 Subject: [PATCH] Reduces files to the built-in makefile type for pre-commit As nudged [here][1], but this won't be fully effective until https://github.com/pre-commit/identify/pull/353 is merged. I think this is safe because so few people use `*.make`... I think I've seen it maybe a few times in 20 years. [1]: https://github.com/pre-commit/pre-commit.com/pull/756#issuecomment-1356462222 --- .pre-commit-hooks.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f3aa652..9a8ef20 100755 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -3,9 +3,4 @@ entry: checkmake language: golang pass_filenames: true - files: | - (?x)^( - (GNU)?[Mm]akefile| - .*\.mk| - .*\.make - )$ + types: [makefile]