From ed78c660da6821dbd7e22ce3c610b1a631094a3e Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 16 Oct 2023 09:06:37 +0300 Subject: [PATCH] .pre-commit-config.yaml: remove markdown exclusion of trailing-whitespace --- .pre-commit-config.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4377823..26115b93 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,11 +27,15 @@ repos: exclude: .*\.nginx$ - id: fix-byte-order-marker - id: trailing-whitespace + # Markdown allows double trailing space for forced line change. The + # hook appears to remove single ones. args: ["--markdown-linebreak-ext", "md,markdown"] # Let's not touch LICENSE files or reuse.software directory exclude: ^LICENSES\/.*|LICENSE$ - # File types depending on trailing whitespace. Use identify-cli - exclude_types: [svg, markdown, tsv] + # Other file extensions where trailing whitespace may be intentional + # and lack of it break things. Use identify-cli for figuring out more + # types to add. + exclude_types: [svg, tsv] #- id: check-docstring-first #- id: check-json - id: check-merge-conflict