Skip to content

Commit

Permalink
Fix file selection of pre-commit hook
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bbannier committed Sep 4, 2023
1 parent e1c56ee commit f5634b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
entry: zeek-format
args: [-i] #inplace
language: python
files: '.*zeek'
files: \.zeek$

0 comments on commit f5634b3

Please sign in to comment.