diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e4377823..26115b93 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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