1
+ ci :
2
+ autoupdate_schedule : monthly
3
+
1
4
repos :
2
5
- repo : https://github.com/pre-commit/pre-commit-hooks
3
6
rev : v4.4.0
@@ -10,88 +13,27 @@ repos:
10
13
- id : check-case-conflict
11
14
- id : check-toml
12
15
- id : check-yaml
13
- - id : debug-statements
14
- exclude : ipykernel/kernelapp.py
15
16
- id : forbid-new-submodules
16
17
- id : check-builtin-literals
17
18
- id : trailing-whitespace
18
19
19
- - repo : https://github.com/psf/black
20
- rev : 22.10.0
21
- hooks :
22
- - id : black
23
- args : ["--line-length", "100"]
24
-
25
- - repo : https://github.com/Carreau/velin
26
- rev : 0.0.12
27
- hooks :
28
- - id : velin
29
- args : ["ipykernel"]
30
-
31
- - repo : https://github.com/PyCQA/isort
32
- rev : 5.10.1
33
- hooks :
34
- - id : isort
35
- files : \.py$
36
- args : [--profile=black]
37
-
38
- - repo : https://github.com/abravalheri/validate-pyproject
39
- rev : v0.10.1
20
+ - repo : https://github.com/python-jsonschema/check-jsonschema
21
+ rev : 0.19.2
40
22
hooks :
41
- - id : validate-pyproject
42
- stages : [manual]
23
+ - id : check-github-workflows
43
24
44
25
- repo : https://github.com/executablebooks/mdformat
45
26
rev : 0.7.16
46
27
hooks :
47
28
- id : mdformat
48
- additional_dependencies :
49
- [mdformat-gfm, mdformat-frontmatter, mdformat-footnote]
50
29
51
- - repo : https://github.com/asottile/pyupgrade
52
- rev : v3.3.0
53
- hooks :
54
- - id : pyupgrade
55
- args : [--py38-plus]
56
-
57
- - repo : https://github.com/PyCQA/doc8
58
- rev : v1.0.0
59
- hooks :
60
- - id : doc8
61
- args : [--max-line-length=200]
62
- stages : [manual]
63
-
64
- - repo : https://github.com/pre-commit/mirrors-mypy
65
- rev : v0.991
66
- hooks :
67
- - id : mypy
68
- exclude : " ipykernel.*tests"
69
- args : ["--config-file", "pyproject.toml"]
70
- additional_dependencies :
71
- [tornado, jupyter_client, pytest, traitlets, jupyter_core]
72
- stages : [manual]
73
-
74
- - repo : https://github.com/john-hen/Flake8-pyproject
75
- rev : 1.2.2
76
- hooks :
77
- - id : Flake8-pyproject
78
- alias : flake8
79
- additional_dependencies :
80
- ["flake8-bugbear==22.6.22", "flake8-implicit-str-concat==0.2.0"]
81
- stages : [manual]
82
-
83
- - repo : https://github.com/pre-commit/mirrors-eslint
84
- rev : v8.29.0
30
+ - repo : https://github.com/psf/black
31
+ rev : 22.10.0
85
32
hooks :
86
- - id : eslint
87
- stages : [manual]
33
+ - id : black
88
34
89
- - repo : https://github.com/sirosen/check-jsonschema
90
- rev : 0.19.2
35
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
36
+ rev : v0.0.165
91
37
hooks :
92
- - id : check-jsonschema
93
- name : " Check GitHub Workflows"
94
- files : ^\.github/workflows/
95
- types : [yaml]
96
- args : ["--schemafile", "https://json.schemastore.org/github-workflow"]
97
- stages : [manual]
38
+ - id : ruff
39
+ args : ["--fix"]
0 commit comments