mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
.pre-commit-config.yaml: enable trailing-whitespace with exclude{,_types}
This commit is contained in:
parent
924b1148bf
commit
bdd8bf9484
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user