From 29cb4227193221233e5cb3125a1aca8a5c8c752d Mon Sep 17 00:00:00 2001 From: Lieven Hey Date: Fri, 17 May 2024 09:13:13 +0200 Subject: [PATCH] ci: disable trim whitespace for markdown files A double whitespace at the end of a line is valid markdown so we should not remove those. --- .mdlrc.rb | 1 + .pre-commit-config.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.mdlrc.rb b/.mdlrc.rb index b5160b09..0b0c88f4 100644 --- a/.mdlrc.rb +++ b/.mdlrc.rb @@ -1,4 +1,5 @@ all +rule 'MD009', :br_spaces => 2 rule 'MD013', :line_length => 120, :tables => false, :code_blocks => false rule 'MD029', :style => :ordered exclude_rule 'MD033' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 77bc4ff5..586dd61a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,7 @@ repos: hooks: - id: trailing-whitespace exclude: (tests/modeltests/disassembly/) + args: ["--markdown-linebreak-ext=md,markdown"] - id: end-of-file-fixer - id: check-added-large-files args: ['--maxkb=1000']