[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:
parent
76dc355c6c
commit
fad510f69e
1 changed files with 3 additions and 2 deletions
|
|
@ -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?$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue