Skip to content

Commit

Permalink
Check space in the file names in the pre commit checks
Browse files Browse the repository at this point in the history
Signed-off-by: Lu Fang <[email protected]>
  • Loading branch information
houseroad committed Feb 6, 2025
1 parent d88506d commit 2546b6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,7 @@ repos:
language: system
verbose: true
pass_filenames: false
- id: check-filenames
name: Check spaces in filenames
entry: bash -c 'git diff --cached --name-only | grep " " && exit 1 || exit 0'
language: system

0 comments on commit 2546b6e

Please sign in to comment.