-
Notifications
You must be signed in to change notification settings - Fork 13
/
.pre-commit-config.yaml
39 lines (39 loc) · 1.09 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
repos:
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.12b0]
args: ["-l 79"]
exclude: ^docs/theme/|\.rst$
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
args: ["-l 79"]
exclude: ^docs/theme/
- repo: local
hooks:
- id: pylint
name: pylint
language: system
files: \.py$
entry: pylint
args: ["--extension-pkg-whitelist=cv2", "--errors-only"]
exclude: ^(docs/theme/|app/)
- repo: local
hooks:
- id: ipynb-strip
name: ipynb-strip
language: system
files: \.ipynb$
exclude: ^docs/ # *do* commit ipynb outputs in `docs/`
entry: jupyter nbconvert --clear-output --ClearOutputPreprocessor.enabled=True
args: ["--log-level=ERROR"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
exclude: ^docs/theme/
language_version: system