-
Notifications
You must be signed in to change notification settings - Fork 15
/
.pre-commit-config.yaml
69 lines (69 loc) · 1.82 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
57
58
59
60
61
62
63
64
65
66
67
68
69
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v3.4.0'
hooks:
- id: end-of-file-fixer
exclude: 'setup.cfg'
- id: trailing-whitespace
exclude: 'setup.cfg'
- id: debug-statements
- repo: https://github.com/asottile/pyupgrade
rev: 'v2.10.0'
hooks:
- id: pyupgrade
args:
- --py36-plus
- repo: https://github.com/pycqa/isort
rev: '5.7.0'
hooks:
- id: isort
- repo: https://github.com/google/yapf
rev: 'a53e340c2ff24b36c98945c6f0374c6e21899afe'
hooks:
- id: yapf
args:
- --in-place
- --recursive
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.4'
hooks:
- id: flake8
args:
- --max-line-length=100
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.5.7
hooks:
- id: nbqa-pyupgrade
args:
- --nbqa-mutate
- --py36-plus
- id: nbqa-isort
args:
- --nbqa-mutate
# This can replace the local hook definition below when https://github.com/nbQA-dev/nbQA/pull/547 is released
#- id: nbqa-yapf
# args:
# - --nbqa-mutate
- repo: https://github.com/kynan/nbstripout
rev: 0.3.9
hooks:
- id: nbstripout
args:
# Strip metadata but keep counts and outputs
- --keep-count
- --keep-output
- repo: https://github.com/bdice/nb-strip-paths
rev: b1203bb13ac55f2ba381530c17f7e56ff497f508
hooks:
- id: nb-strip-paths
- repo: local
hooks:
- id: nbqa-yapf
name: nbqa-yapf
description: "Run 'yapf' on a Jupyter Notebook"
entry: nbqa yapf --in-place --nbqa-mutate
language: python
language_version: python3
require_serial: true
types: [jupyter]
additional_dependencies: [nbqa, yapf]