forked from kili-technology/kili-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
60 lines (60 loc) · 1.79 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- id: black-jupyter
- repo: https://github.com/pycqa/isort
rev: 5.11.5
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:
- id: flake8
additional_dependencies:
- flake8-black>=0.1.1
- flake8-bugbear>=20.0.0
- flake8-unused-arguments
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/srstevenson/nb-clean
rev: 2.4.0
hooks:
- id: nb-clean
args:
- --preserve-cell-outputs
- --preserve-cell-metadata
- tags
- --
- repo: local
hooks:
- id: clean-notebook-metadata
name: Clean notebook metadata
language: python
entry: jupyter nbconvert --ClearMetadataPreprocessor.enabled=True --ClearMetadataPreprocessor.preserve_cell_metadata_mask tags --inplace
files: .*\.ipynb$
stages: [commit, merge-commit]
always_run: false
pass_filenames: true
additional_dependencies: [nbconvert]
- id: notebook-markdown-tutorials
name: Checks for notebook and markdown tutorials
language: python
entry: python -m docs.utils notebook_tutorials_commit_hook
files: recipes\/.*\.ipynb$|docs\/sdk\/tutorials\/.*\.md$
stages: [commit, merge-commit]
always_run: false
pass_filenames: true
require_serial: true
additional_dependencies: [click, nbconvert]