forked from biopython/biopython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.6 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-executables-have-shebangs
files: \.(py|sh)$
- id: check-json
- id: debug-statements
- id: end-of-file-fixer
files: \.py$
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 19.10b0
hooks:
- id: black
args: [--check]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
additional_dependencies: [
'flake8-blind-except',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-docstrings',
'flake8-implicit-str-concat',
'flake8-quotes',
'flake8-rst-docstrings',
'pydocstyle>=5.0.0',
]
- repo: https://github.com/asottile/blacken-docs
rev: v1.6.0
hooks:
- id: blacken-docs
additional_dependencies: [black==19.10b0]
exclude: ^.github/
- repo: https://github.com/myint/rstcheck
rev: ''
hooks:
- id: rstcheck
args: [--report=warning]
- repo: https://github.com/PyCQA/doc8
rev: ''
hooks:
- id: doc8
additional_dependencies: [pygments]
args: [--quiet,--ignore-path=Doc/examples/ec_*.txt, --ignore=D004]
- repo: local
hooks:
- id: doi-link-style
name: Enforce https://doi.org/ style
description: Check DOI link style, see https://www.crossref.org/display-guidelines/
entry: '(?i)(doi:|dx\.doi\.org|http://doi\.org)'
language: pygrep
files: \.(rst|tex)$