From 1c0a727aa0a22c514b7dbe91bf08d465b0ceb4ac Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Mon, 16 Oct 2023 09:47:44 +0300 Subject: [PATCH] .pre-commit-config.yaml: properly use trailing-whitespace for markdown --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13e18f6..b4005d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,12 +25,13 @@ repos: - id: end-of-file-fixer - id: fix-byte-order-marker - id: trailing-whitespace + args: ["--markdown-linebreak-ext", "md,markdown"] # I don't want to touch licenses or past association logs or Limnoria # configuration exports. exclude: ^LICENSES\/.*|LICENSE|associations\/.*|.*\.conf$$ # File types depending on trailing whitespace. Use identify-cli exclude_types: - [tsv, markdown] + [svg, tsv] #- id: check-docstring-first #- id: check-json - id: check-merge-conflict