forked from chrisjsewell/ipypublish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (38 loc) · 930 Bytes
/
.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
# Install pre-commit hooks via
# pre-commit install
exclude: >-
(?x)^(
.vscode/settings.json|
docs/build/.*|
example/.*|
ipypublish/tests/test_files/.*|
ipypublish/sphinx/tests/sourcedirs/.*|
ipypublish/sphinx/config.yaml|
docs/source/custom_export_config.rst
)$
# TODO docs/source/custom_export_config.rst is excleded because doc8
# complains about :linenos: in code-block
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v2.2.3
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://gitlab.com/pycqa/flake8
rev: "3.7.9"
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
- repo: local
hooks:
- id: doc8
name: RST Linting
entry: doc8
language: system
exclude: docs/build/*
types: [rst]