Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1918aa1b
Unverified
Commit
1918aa1b
authored
Feb 07, 2025
by
Lu Fang
Committed by
GitHub
Feb 07, 2025
Browse files
[MISC][EASY] Break check file names into entry and args in the pre-commit hooks (#12880)
Signed-off-by:
Lu Fang
<
lufang@fb.com
>
parent
6e1fc61f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
.pre-commit-config.yaml
.pre-commit-config.yaml
+4
-1
No files found.
.pre-commit-config.yaml
View file @
1918aa1b
...
@@ -110,7 +110,10 @@ repos:
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment