From 24ad585ced459e3608efd9750caa19bc842b43b2 Mon Sep 17 00:00:00 2001 From: Andrea Manenti Date: Wed, 7 Aug 2024 10:30:19 -0700 Subject: [PATCH] [ADD] adds new hook: prevents files from having whitespaces in their name --- src/pre_commit_vauxoo/cfg/.pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pre_commit_vauxoo/cfg/.pre-commit-config.yaml b/src/pre_commit_vauxoo/cfg/.pre-commit-config.yaml index d59f113..fee7606 100644 --- a/src/pre_commit_vauxoo/cfg/.pre-commit-config.yaml +++ b/src/pre_commit_vauxoo/cfg/.pre-commit-config.yaml @@ -50,3 +50,10 @@ repos: - --color - --config=.eslintrc.json # - --fix + - repo: local + hooks: + - id: no-whitespace-filename + name: file names cannot contain whitespaces + entry: files cannot contain whitespaces in their names + language: fail + files: '.*\s.*'