Skip to content

Commit 671d996

Browse files
authored
Merge pull request #587 from ansible/pre-commit-ci-update-config
2 parents 9591300 + 5b590ba commit 671d996

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
types: [file]
2121

2222
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
23-
rev: v1.5.4
23+
rev: v1.5.5
2424
hooks:
2525
- id: remove-tabs
2626

@@ -75,7 +75,7 @@ repos:
7575
^docs/_samples/.*\.py$
7676
7777
- repo: https://github.com/adrienverge/yamllint.git
78-
rev: v1.33.0
78+
rev: v1.35.1
7979
hooks:
8080
- id: yamllint
8181
files: \.(yaml|yml)$
@@ -84,7 +84,7 @@ repos:
8484
- --strict
8585

8686
- repo: https://github.com/PyCQA/flake8.git
87-
rev: 6.1.0
87+
rev: 7.0.0
8888
hooks:
8989
- id: flake8
9090
alias: flake8-no-wps
@@ -103,8 +103,7 @@ repos:
103103
- file
104104

105105
- 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
108107
hooks:
109108
- id: flake8
110109
alias: flake8-only-wps
@@ -116,7 +115,7 @@ repos:
116115
- --select
117116
- WPS
118117
additional_dependencies:
119-
- wemake-python-styleguide ~= 0.17.0
118+
- wemake-python-styleguide ~= 0.19.2
120119
exclude: >-
121120
^docs/_samples/.*\.py$
122121
files: >-
@@ -200,36 +199,4 @@ repos:
200199
# entry: python -m pylint
201200
# args: []
202201

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-
235202
...

0 commit comments

Comments
 (0)