20
20
types : [file]
21
21
22
22
- repo : https://github.com/Lucas-C/pre-commit-hooks.git
23
- rev : v1.5.4
23
+ rev : v1.5.5
24
24
hooks :
25
25
- id : remove-tabs
26
26
75
75
^docs/_samples/.*\.py$
76
76
77
77
- repo : https://github.com/adrienverge/yamllint.git
78
- rev : v1.33.0
78
+ rev : v1.35.1
79
79
hooks :
80
80
- id : yamllint
81
81
files : \.(yaml|yml)$
84
84
- --strict
85
85
86
86
- repo : https://github.com/PyCQA/flake8.git
87
- rev : 6.1 .0
87
+ rev : 7.0 .0
88
88
hooks :
89
89
- id : flake8
90
90
alias : flake8-no-wps
@@ -103,8 +103,7 @@ repos:
103
103
- file
104
104
105
105
- repo : https://github.com/PyCQA/flake8.git
106
- # NOTE: This is kept at v4 for until WPS starts supporting flake v5.
107
- rev : 4.0.1 # enforce-version: 4.0.1
106
+ rev : 7.0.0
108
107
hooks :
109
108
- id : flake8
110
109
alias : flake8-only-wps
@@ -116,7 +115,7 @@ repos:
116
115
- --select
117
116
- WPS
118
117
additional_dependencies :
119
- - wemake-python-styleguide ~= 0.17.0
118
+ - wemake-python-styleguide ~= 0.19.2
120
119
exclude : >-
121
120
^docs/_samples/.*\.py$
122
121
files : >-
@@ -200,36 +199,4 @@ repos:
200
199
# entry: python -m pylint
201
200
# args: []
202
201
203
- - repo : local
204
- hooks :
205
- - id : enforced-flake8-version
206
- name : Verify that enforced flake8 version stays unchanged
207
- description : >-
208
- This is a sanity check and fixer that makes sure that
209
- the `flake8` version in this file remains matching the
210
- corresponding request in the `# enforce-version` comment.
211
- # Using Python here because using
212
- # shell test does not always work in CIs:
213
- entry : >-
214
- python -c 'import pathlib, re, sys;
215
- pre_commit_config = pathlib.Path(sys.argv[1]);
216
- cfg_txt = pre_commit_config.read_text();
217
- new_cfg_txt = re.sub(
218
- r"(?P<spaces>\s+)rev:\s(?:\d+\.\d+\.\d+)\s{0,2}"
219
- r"#\senforce-version:\s(?P<enforced_version>\d+\.\d+\.\d+)"
220
- r"[ \t\f\v]*",
221
- r"\g<spaces>rev: \g<enforced_version> "
222
- r"# enforce-version: \g<enforced_version>",
223
- cfg_txt,
224
- );
225
- cfg_txt != new_cfg_txt and
226
- pre_commit_config.write_text(new_cfg_txt)
227
- '
228
- pass_filenames : true
229
- language : system
230
- files : >-
231
- ^\.pre-commit-config\.ya?ml$
232
- types :
233
- - yaml
234
-
235
202
...
0 commit comments