.pre-commit-config.yaml: enable trailing-whitespace with exclude{,_types}

This commit is contained in:
Aminda Suomalainen 2023-05-07 18:15:16 +03:00
parent 924b1148bf
commit bdd8bf9484
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -14,10 +14,11 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: fix-byte-order-marker
#- id: trailing-whitespace
# Two lines later must be prettierignored or it gets spaces and breaks
# prettier-ignore
#args: [--markdown-linebreak-ext=txt,tsv]
- id: trailing-whitespace
# Let's not touch LICENSE files or reuse.software directory
exclude: ^LICENSES\/.*|LICENSE$
# File types depending on trailing whitespace. Use identify-cli
exclude_types: [tsv, markdown]
# Markdown Table of Contents generation.
- repo: https://github.com/thlorenz/doctoc