1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.2 .0
3
+ rev : v4.4 .0
4
4
hooks :
5
5
- id : check-added-large-files
6
- args : ['--maxkb=25']
6
+ args :
7
+ - --maxkb=25
7
8
- id : check-case-conflict
8
9
- id : check-merge-conflict
9
10
- id : check-vcs-permalinks
@@ -13,101 +14,102 @@ repos:
13
14
- id : fix-byte-order-marker
14
15
- id : mixed-line-ending
15
16
- id : no-commit-to-branch
16
- args : [--branch, main]
17
+ args :
18
+ - --branch
19
+ - main
17
20
- id : trailing-whitespace
18
21
- repo : https://github.com/pre-commit/pygrep-hooks
19
- rev : v1.9 .0
22
+ rev : v1.10 .0
20
23
hooks :
21
24
- id : python-check-blanket-noqa
22
25
- id : python-check-mock-methods
23
26
- id : python-no-eval
24
27
- id : python-no-log-warn
25
28
- id : python-use-type-annotations
26
29
- id : text-unicode-replacement-char
27
- - repo : https://github.com/asottile/pyupgrade
28
- rev : v2.32.0
29
- hooks :
30
- - id : pyupgrade
31
- args : [--py37-plus]
32
30
- repo : https://github.com/asottile/reorder_python_imports
33
- rev : v3.0.1
31
+ rev : v3.9.0
34
32
hooks :
35
33
- id : reorder-python-imports
36
- args : [--py37-plus, --add-import, 'from __future__ import annotations']
34
+ args :
35
+ - --py37-plus
36
+ - --add-import
37
+ - from __future__ import annotations
37
38
- repo : https://github.com/asottile/setup-cfg-fmt
38
- rev : v1.20.1
39
+ rev : v2.2.0
39
40
hooks :
40
41
- id : setup-cfg-fmt
41
- - repo : https://github.com/myint /docformatter
42
- rev : v1.3.1
42
+ - repo : https://github.com/PyCQA /docformatter
43
+ rev : v1.6.0.rc1
43
44
hooks :
44
45
- id : docformatter
45
- args : [--in-place, --wrap-summaries, "88", --wrap-descriptions, "88", --blank]
46
+ args :
47
+ - --in-place
48
+ - --wrap-summaries
49
+ - ' 88'
50
+ - --wrap-descriptions
51
+ - ' 88'
52
+ - --blank
46
53
- repo : https://github.com/psf/black
47
- rev : 22.3 .0
54
+ rev : 22.12 .0
48
55
hooks :
49
56
- id : black
50
- - repo : https://github.com/PyCQA/flake8
51
- rev : 4.0.1
57
+ - repo : https://github.com/charliermarsh/ruff-pre-commit
58
+ rev : v0.0.228
59
+ hooks :
60
+ - id : ruff
61
+ - repo : https://github.com/dosisod/refurb
62
+ rev : v1.10.0
52
63
hooks :
53
- - id : flake8
54
- types : [python]
55
- additional_dependencies : [
56
- flake8-alfred,
57
- flake8-bugbear,
58
- flake8-builtins,
59
- flake8-comprehensions,
60
- flake8-docstrings,
61
- flake8-eradicate,
62
- flake8-print,
63
- flake8-pytest-style,
64
- flake8-todo,
65
- flake8-typing-imports,
66
- flake8-unused-arguments,
67
- pep8-naming,
68
- pydocstyle,
69
- Pygments,
70
- ]
64
+ - id : refurb
65
+ args :
66
+ - --ignore
67
+ - FURB126
71
68
- repo : https://github.com/econchick/interrogate
72
69
rev : 1.5.0
73
70
hooks :
74
71
- id : interrogate
75
- args : [-v, --fail-under=40, src, tests]
72
+ args :
73
+ - -v
74
+ - --fail-under=40
75
+ - src
76
+ - tests
76
77
- repo : https://github.com/executablebooks/mdformat
77
- rev : 0.7.14
78
+ rev : 0.7.16
78
79
hooks :
79
80
- id : mdformat
80
- additional_dependencies : [
81
- mdformat-gfm,
82
- mdformat-black,
83
- ]
84
- args : [--wrap, "88"]
85
- - repo : https://github.com/codespell-project/codespell
86
- rev : v2.1.0
87
- hooks :
81
+ additional_dependencies :
82
+ - mdformat-gfm
83
+ - mdformat-black
84
+ args :
85
+ - --wrap
86
+ - ' 88'
87
+ - repo : https://github.com/codespell-project/codespell
88
+ rev : v2.2.2
89
+ hooks :
88
90
- id : codespell
89
91
- repo : https://github.com/pre-commit/mirrors-mypy
90
- rev : ' v0.931 '
92
+ rev : v0.991
91
93
hooks :
92
94
- id : mypy
93
- args : [
94
- --no-strict-optional,
95
- --ignore-missing-imports,
96
- ]
97
- additional_dependencies : [
98
- attrs,
99
- click,
100
- types-setuptools
101
- ]
95
+ args :
96
+ - --no-strict-optional
97
+ - --ignore-missing-imports
98
+ additional_dependencies :
99
+ - attrs
100
+ - click
101
+ - types-setuptools
102
102
pass_filenames : false
103
103
- repo : https://github.com/mgedmin/check-manifest
104
- rev : " 0.48 "
104
+ rev : ' 0.49 '
105
105
hooks :
106
106
- id : check-manifest
107
- args : [--no-build-isolation]
108
- additional_dependencies : [setuptools-scm, toml]
107
+ args :
108
+ - --no-build-isolation
109
+ additional_dependencies :
110
+ - setuptools-scm
111
+ - toml
109
112
- repo : meta
110
113
hooks :
111
114
- id : check-hooks-apply
112
115
- id : check-useless-excludes
113
- # - id: identity # Prints all files passed to pre-commits. Debugging.
0 commit comments