1
+ default_stages : [commit]
2
+
1
3
repos :
2
4
3
5
- repo : https://github.com/jorisroovers/gitlint
17
19
types : [text]
18
20
files : ^(bash_completion|completions/.+|test/(config/bashrc|update-test-cmd-list)|.+\.sh(\.in)?)$
19
21
exclude : ^completions/(\.gitignore|Makefile.*)$
20
- stages : [commit]
21
22
22
23
- repo : https://github.com/shellcheck-py/shellcheck-py
23
24
rev : v0.7.2.1
28
29
files : ^(bash_completion|completions/.+|test/(config/bashrc|update-test-cmd-list)|.+\.sh(\.in)?)$
29
30
exclude : ^completions/(\.gitignore|Makefile.*)$
30
31
require_serial : false # We disable SC1090 anyway, so parallel is ok
31
- stages : [commit]
32
32
33
33
- repo : local
34
34
hooks :
38
38
entry : test/update-test-cmd-list
39
39
files : ^test/t/.+\.py$
40
40
pass_filenames : false
41
- stages : [commit]
42
41
43
42
- repo : https://github.com/psf/black
44
43
rev : 21.7b0
47
46
types : [text]
48
47
files : ^(helpers/python|.+\.py)$
49
48
exclude : ^completions/
50
- stages : [commit]
51
49
52
50
- repo : https://github.com/PyCQA/flake8
53
51
rev : 3.9.2
@@ -66,14 +64,12 @@ repos:
66
64
types : [text]
67
65
files : ^(helpers/python|.+\.py)$
68
66
exclude : ^completions/
69
- stages : [commit]
70
67
71
68
- repo : https://github.com/PyCQA/isort
72
69
rev : 5.9.3
73
70
hooks :
74
71
- id : isort
75
72
args : [--filter-files, --settings-path=test/setup.cfg]
76
- stages : [commit]
77
73
78
74
- repo : local
79
75
hooks :
@@ -88,23 +84,20 @@ repos:
88
84
types : [python]
89
85
# Intentionally not run on helpers/python (we support very old versions)
90
86
exclude : ^completions/|^test/fixtures/pytest/
91
- stages : [commit]
92
87
93
88
- repo : https://github.com/asottile/pyupgrade
94
89
rev : v2.24.0
95
90
hooks :
96
91
- id : pyupgrade
97
92
args : [--py36-plus, --keep-percent-format]
98
93
exclude : ^completions/
99
- stages : [commit]
100
94
101
95
- repo : https://github.com/perltidy/perltidy
102
96
rev : " 20210717"
103
97
hooks :
104
98
- id : perltidy
105
99
types : [text]
106
100
files : ^(helpers/perl|.+\.p[ml])$
107
- stages : [commit]
108
101
109
102
- repo : local
110
103
hooks :
@@ -116,24 +109,20 @@ repos:
116
109
args : [--quiet, --verbose, "5"]
117
110
types : [text]
118
111
files : ^(helpers/perl|.+\.p[ml])$
119
- stages : [commit]
120
112
121
113
- repo : https://github.com/igorshubovych/markdownlint-cli
122
114
rev : v0.28.1
123
115
hooks :
124
116
- id : markdownlint
125
117
exclude : ^CHANGELOG\.md$
126
- stages : [commit]
127
118
128
119
- repo : https://github.com/pre-commit/pre-commit-hooks
129
120
rev : v4.0.1
130
121
hooks :
131
122
- id : check-case-conflict
132
- stages : [commit]
133
123
134
124
- repo : https://github.com/crate-ci/typos
135
125
rev : v1.0.11
136
126
hooks :
137
127
- id : typos
138
128
exclude : ^(CHANGELOG\.md|test/(test-cmd-list\.txt|fixtures/.+))$
139
- stages : [commit]
0 commit comments