Update pre-commit settings for doc8 (Windows line endings) (#3251)

* Tweak pre-commit-config for recent doc8 changes

* Change .gitattributes to change line endings to Unix style for text files
This commit is contained in:
Markus Piotrowski
2020-09-03 12:08:54 +02:00
committed by GitHub
parent 046fe96b91
commit 712e1c6b23
3 changed files with 8 additions and 3 deletions

6
.gitattributes vendored
View File

@ -1,7 +1,11 @@
# On Windows, git can be setup to convert text files to use
# DOS/Windows newlines (\r\n) rather than Unix style (\n).
# This should be harmless for most of our unit tests...
#
# Still, it's better when we try to assure unform Unix style
# when committing:
* text=auto
# However, where testing indexing and get_raw (including the
# BGZF tests comparing the uncompressed file to the compressed
# file) it can be important to preserve the line endings in git.

View File

@ -41,11 +41,11 @@ repos:
- id: rstcheck
args: [--report=warning]
- repo: https://github.com/PyCQA/doc8
rev: 0.8.1
rev: ''
hooks:
- id: doc8
additional_dependencies: [pygments]
args: [--quiet,--ignore-path=Doc/examples/ec_*.txt]
args: [--quiet,--ignore-path=Doc/examples/ec_*.txt, --ignore=D004]
- repo: local
hooks:
- id: doi-link-style

View File

@ -48,6 +48,7 @@ possible, especially the following contributors:
- João Rodrigues
- João Vitor F Cavalcante (first contribution)
- Marie Crane
- Markus Piotrowski
- Michiel de Hoon
- Peter Cock
- Sergio Valqui