Allow trailing spaces in md/rst files
parent
501b1ab3b5
commit
859038e58f
|
|
@ -9,7 +9,7 @@ charset = utf-8
|
|||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.md]
|
||||
[*.{md,rst}]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[.git*]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
*.sh text eol=lf
|
||||
*.bash text eol=lf
|
||||
|
||||
# Docs allow trailing whitespaces
|
||||
*.md whitespace=-blank-at-eol
|
||||
*.rst whitespace=-blank-at-eol
|
||||
|
||||
# Windows files
|
||||
*.bat text eol=crlf
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ repos:
|
|||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
exclude: ".(md|rst)$"
|
||||
- id: end-of-file-fixer
|
||||
- id: check-merge-conflict
|
||||
- id: mixed-line-ending
|
||||
|
|
|
|||
Loading…
Reference in New Issue