[FIX] pre-commit: do not strip trailing whitespace from patches

The blank context lines of a diff are a single space: stripping it breaks
pos_payment_method_cashdro_fix/upstream/*.patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GitHub Copilot 2026-10-04 14:14:17 +02:00
parent 76dc355c6c
commit fad510f69e
Signed by: snt
GPG key ID: A9FD34930EADBE71

View file

@ -64,8 +64,9 @@ repos:
rev: v6.0.0
hooks:
- id: trailing-whitespace
# exclude autogenerated files
exclude: /README\.rst$|\.pot?$
# exclude autogenerated files, and patches: the blank context
# lines of a diff are a single space, stripping it breaks them
exclude: /README\.rst$|\.pot?$|\.patch$
- id: end-of-file-fixer
# exclude autogenerated files
exclude: /README\.rst$|\.pot?$