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