Skip to content

Commit a55f9c0

Browse files
houseroadlulmer
authored andcommitted
[MISC][EASY] Break check file names into entry and args in the pre-commit hooks (vllm-project#12880)
Signed-off-by: Lu Fang <[email protected]> Signed-off-by: Louis Ulmer <[email protected]>
1 parent 2779a12 commit a55f9c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.pre-commit-config.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ repos:
110110
pass_filenames: false
111111
- id: check-filenames
112112
name: Check for spaces in all filenames
113-
entry: bash -c 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0'
113+
entry: bash
114+
args:
115+
- -c
116+
- 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0'
114117
language: system
115118
always_run: true
116119
pass_filenames: false

0 commit comments

Comments
 (0)