.pre-commit-config.yaml: remove markdown exclusion of trailing-whitespace

This commit is contained in:
Aminda Suomalainen 2023-10-16 09:06:37 +03:00
parent 70ec035f22
commit ed78c660da
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 6 additions and 2 deletions

View File

@ -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