From dc538d6489e6649f6e3407804c98c1905533fb30 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 7 May 2023 18:28:59 +0300 Subject: [PATCH] .pre-commit-config.yaml: enable trailing-whitespace hook --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6795c3..c9664b3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,6 +10,12 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: fix-byte-order-marker + - id: trailing-whitespace + # I don't want to touch licenses or past association logs or Limnoria + # configuration exports. + exclude: ^LICENSES\/.*|LICENSE|associations\/.*|.*\.conf$$ + # File types depending on trailing whitespace. Use identify-cli + exclude_types: [tsv, markdown] - repo: https://github.com/thlorenz/doctoc rev: v2.2.0 hooks: