Skip to content

Commit

Permalink
[MISC][EASY] Break check file names into entry and args in the pre-co…
Browse files Browse the repository at this point in the history
…mmit hooks (vllm-project#12880)

Signed-off-by: Lu Fang <[email protected]>
  • Loading branch information
houseroad authored Feb 7, 2025
1 parent 6e1fc61 commit 1918aa1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ repos:
pass_filenames: false
- id: check-filenames
name: Check for spaces in all filenames
entry: bash -c 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0'
entry: bash
args:
- -c
- 'git ls-files | grep " " && echo "Filenames should not contain spaces!" && exit 1 || exit 0'
language: system
always_run: true
pass_filenames: false

0 comments on commit 1918aa1

Please sign in to comment.