From 211a31cc4d3b2752d6c8b2b97f97ab154105617b Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:47:34 -0400 Subject: [PATCH] Adjust the `trailing-whitespace` hook configuration Add an argument to preserve Markdown hard linebreaks. --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3cb1f85..9da2fe1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,6 +32,8 @@ repos: - --autofix - id: requirements-txt-fixer - id: trailing-whitespace + args: + - --markdown-linebreak-ext=md # Text file hooks - repo: https://github.com/igorshubovych/markdownlint-cli