1
1
repos :
2
-
3
2
# Empty notebookds
4
3
- repo : local
5
4
hooks :
6
- - id : clear-notebooks-output
7
- name : clear-notebooks-output
8
- files : tools/.*\.ipynb$
9
- stages : [commit]
10
- language : python
11
- entry : jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
12
- additional_dependencies : [jupyter]
13
-
14
-
5
+ - id : clear-notebooks-output
6
+ name : clear-notebooks-output
7
+ files : tools/.*\.ipynb$
8
+ stages : [commit]
9
+ language : python
10
+ entry : jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace
11
+ additional_dependencies : [jupyter]
15
12
- repo : https://github.com/pre-commit/pre-commit-hooks
16
13
rev : v4.6.0
17
14
hooks :
@@ -23,13 +20,11 @@ repos:
23
20
- id : no-commit-to-branch # Prevent committing to main / master
24
21
- id : check-added-large-files # Check for large files added to git
25
22
- id : check-merge-conflict # Check for files that contain merge conflict
26
-
27
23
- repo : https://github.com/psf/black-pre-commit-mirror
28
24
rev : 24.4.2
29
25
hooks :
30
- - id : black
31
- args : [--line-length=120]
32
-
26
+ - id : black
27
+ args : [--line-length=120]
33
28
- repo : https://github.com/pycqa/isort
34
29
rev : 5.13.2
35
30
hooks :
38
33
- -l 120
39
34
- --force-single-line-imports
40
35
- --profile black
41
-
42
-
43
36
- repo : https://github.com/astral-sh/ruff-pre-commit
44
37
rev : v0.4.6
45
38
hooks :
@@ -50,32 +43,27 @@ repos:
50
43
- --fix
51
44
- --exit-non-zero-on-fix
52
45
- --preview
53
-
54
46
- repo : https://github.com/sphinx-contrib/sphinx-lint
55
47
rev : v0.9.1
56
48
hooks :
57
- - id : sphinx-lint
58
-
49
+ - id : sphinx-lint
59
50
# For now, we use it. But it does not support a lot of sphinx features
60
51
- repo : https://github.com/dzhu/rstfmt
61
52
rev : v0.0.14
62
53
hooks :
63
- - id : rstfmt
64
- exclude : ' cli/.*' # Because we use argparse
65
-
54
+ - id : rstfmt
55
+ exclude : ' cli/.*' # Because we use argparse
66
56
- repo : https://github.com/b8raoult/pre-commit-docconvert
67
57
rev : " 0.1.5"
68
58
hooks :
69
59
- id : docconvert
70
60
args : ["numpy"]
71
-
72
61
- repo : https://github.com/b8raoult/optional-dependencies-all
73
62
rev : " 0.0.2"
74
63
hooks :
75
64
- id : optional-dependencies-all
76
- args : ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs"]
77
-
65
+ args : ["--inplace", "--all-key", "all", "--exclude-keys", "dev,docs,test"]
78
66
- repo : https://github.com/tox-dev/pyproject-fmt
79
67
rev : " 2.1.3"
80
68
hooks :
81
- - id : pyproject-fmt
69
+ - id : pyproject-fmt
0 commit comments