-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
99 lines (90 loc) · 2.33 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
repos:
- repo: local
hooks:
- id: python-black
name: python-black
entry: poetry run black
args: [--diff, --check]
language: system
files: ^src/|^tests/
types: [python]
- repo: local
hooks:
- id: python-isort
name: python-isort
entry: poetry run isort
args: [--diff, --check-only]
language: system
files: ^src/|^tests/
types: [python]
- repo: local
hooks:
- id: python-flake8
name: python-flake8
entry: poetry run flake8
args: [--show-source, --statistics]
language: system
files: ^src/|^tests/
types: [python]
- repo: local
hooks:
- id: ipynb-black
name: ipynb-black
entry: poetry run nbqa black
args: [--diff, --check]
language: system
files: ^notebooks/
types: [jupyter]
- repo: local
hooks:
- id: ipynb-isort
name: ipynb-isort
entry: poetry run nbqa isort
args: [--diff, --check-only]
language: system
files: ^notebooks/
types: [jupyter]
- repo: local
hooks:
- id: ipynb-flake8
name: ipynb-flake8
entry: poetry run nbqa flake8
args: [--show-source, --statistics]
language: system
files: ^notebooks/
types: [jupyter]
- repo: local
hooks:
- id: poetry-export-main
name: poetry-export-main
entry: poetry export
args: [-f, requirements.txt, --without-hashes, -o, requirements.txt]
language: system
files: ^pyproject\.toml$|^poetry\.lock$
pass_filenames: false
- repo: local
hooks:
- id: poetry-export-dev
name: poetry-export-dev
entry: poetry export
args: [-f, requirements.txt, --without-hashes, --with, dev, -o, requirements-dev.txt]
language: system
files: ^pyproject\.toml$|^poetry\.lock$
pass_filenames: false
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: poetry run shellcheck
language: system
files: ^scripts/
types: [shell]
- repo: local
hooks:
- id: shfmt
name: shfmt
entry: poetry run shfmt
args: [-i, '2', -d]
language: system
files: ^scripts/
types: [shell]