diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-12-07 19:50:27 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-12-07 19:50:27 +0000 |
commit | 5110e6ee1af4f426d2ad0bfe32aab40c59c0c516 (patch) | |
tree | 6181da9651ec936524ca2ccedbabed1dd4ad98c3 | |
parent | dff2ce974c6fe0744646ee3f4defd9001e3733e2 (diff) | |
download | docutils-5110e6ee1af4f426d2ad0bfe32aab40c59c0c516.tar.gz |
Exclude documentation sources from "trailing-whitespace" git commit hook.
The "trailing-whitespace" fixer removes vertical TABs (^L) that are
used in documentation sources to set off emacs local variables.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9306 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r-- | .pre-commit-config.yaml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca68b0bc7..a748e8c2b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: check-added-large-files - id: trailing-whitespace - exclude: ^sandbox|(.el|.svg|.tex|pseudoxml.txt|test_manpage.py)$ + exclude: ^(sandbox|docutils/docs)|(.el|.svg|.tex|pseudoxml.txt|test_manpage.py)$ - id: end-of-file-fixer exclude: ^sandbox|(.svg)|docutils/test/data/utf-16-le-sig.txt$ |