From f82fb149af2c1b552b50e3e38e38ed3a44d4cda1 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Wed, 23 Sep 2015 13:29:30 -0700 Subject: [PATCH] Add C, C++ to whitespace hooks --- hooks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hooks.yaml b/hooks.yaml index 8fcbe78..6286b9b 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -91,7 +91,7 @@ description: Ensures that a file is either empty, or ends with one newline. entry: end-of-file-fixer language: python - files: \.(html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml|pp)$ + files: \.(c|cpp|html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml|pp)$ - id: flake8 name: Flake8 description: This hook runs flake8. @@ -121,4 +121,4 @@ description: This hook trims trailing whitespace. entry: trailing-whitespace-fixer language: python - files: \.(html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml|pp)$ + files: \.(c|cpp|html|erb|slim|haml|ejs|jade|js|coffee|json|rb|md|py|css|scss|less|sh|tmpl|txt|yaml|yml|pp)$