From e7507778a40599e9b25628d10404d6ec62bb9809 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 29 Oct 2022 20:24:51 +1000 Subject: [PATCH] pre-commit(tabs): use blacklist to exclude files Add `indent_style = space` to the `.editorconfig` file for batch files. --- .editorconfig | 1 + .pre-commit-config.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 70cc78f0b..973b490dd 100644 --- a/.editorconfig +++ b/.editorconfig @@ -32,6 +32,7 @@ trim_trailing_whitespace = true [*.bat] charset = latin1 end_of_line = crlf +indent_style = space #max_line_length = 80 [*.{yaml,yml}] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 04f00f86b..b941dbbae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,10 +31,10 @@ repos: rev: v1.3.1 hooks: - id: forbid-tabs - files: \.(c|cc|C|cxx|cpp|gembox|gemspec|h|hh|H|hxx|hpp|inc|md|mdown|markdown|rake|rb|y|yaml|yml)$|^Rakefile$|^rakefile$ + exclude: Makefile$|Makefile\..+$|makefile$|\.mk$ - id: remove-tabs args: [--whitespaces-count, '2'] - files: \.(c|cc|C|cxx|cpp|gembox|gemspec|h|hh|H|hxx|hpp|inc|md|mdown|markdown|rake|rb|y|yaml|yml)$|^Rakefile$|^rakefile$ + exclude: Makefile$|Makefile\..+$|makefile$|\.mk$ - repo: https://github.com/codespell-project/codespell rev: v2.2.2 hooks: