From f5634b31daa21e1503751b726e23b3dc724eb34f Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Mon, 4 Sep 2023 10:53:33 +0200 Subject: [PATCH] Fix file selection of pre-commit hook The `files` field expects a regexp, not a shell glob. We'd previously select any file containing `zeek` in its name instead of files ending in `.zeek`. With this patch we use the intended selection. --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index acb83a4..a136812 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -6,4 +6,4 @@ entry: zeek-format args: [-i] #inplace language: python - files: '.*zeek' + files: \.zeek$