mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 01:15:31 +08:00
[MISC][EASY] Break check file names into entry and args in the pre-commit hooks (#12880)
Signed-off-by: Lu Fang <lufang@fb.com>
This commit is contained in:
parent
6e1fc61f0f
commit
1918aa1b80
@ -110,7 +110,10 @@ repos:
|
|||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
- id: check-filenames
|
- id: check-filenames
|
||||||
name: Check for spaces in all 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
|
language: system
|
||||||
always_run: true
|
always_run: true
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user