File tree Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change
1
+ default_install_hook_types : [pre-commit, commit-msg]
1
2
repos :
2
- - repo : https://github.com/pre-commit/mirrors- autopep8
3
- rev : v1.5.6 # Use the sha / tag you want to point at
3
+ - repo : https://github.com/hhatto/ autopep8
4
+ rev : v2.3.2
4
5
hooks :
5
6
- id : autopep8
6
7
- repo : https://github.com/pre-commit/pre-commit-hooks
7
- rev : v1.3 .0
8
+ rev : v5.0 .0
8
9
hooks :
9
10
# Git state
10
11
- id : check-merge-conflict
11
- stages : [commit]
12
+ stages : [pre- commit]
12
13
- id : check-added-large-files
13
- stages : [commit]
14
+ stages : [pre- commit]
14
15
# Sensitive information
15
16
- id : detect-private-key
16
- stages : [commit]
17
+ stages : [pre- commit]
17
18
- id : detect-aws-credentials
18
- stages : [commit]
19
+ stages : [pre- commit]
19
20
args :
20
21
- --allow-missing-credentials
21
22
# Generic file state
22
23
- id : trailing-whitespace
23
- stages : [commit]
24
+ stages : [pre- commit]
24
25
- id : mixed-line-ending
25
- stages : [commit]
26
+ stages : [pre- commit]
26
27
- id : end-of-file-fixer
27
- stages : [commit]
28
+ stages : [pre- commit]
28
29
exclude : .*\.tfvars$ # terraform fmt separates everything with blank lines leaving a trailing line at the end
29
30
- id : check-executables-have-shebangs
30
- stages : [commit]
31
+ stages : [pre- commit]
31
32
# Language syntax/formatting
32
33
- id : check-yaml
33
- stages : [commit]
34
+ stages : [pre- commit]
34
35
- id : check-json
35
- stages : [commit]
36
+ stages : [pre- commit]
36
37
- id : pretty-format-json
37
- stages : [commit]
38
+ stages : [pre- commit]
38
39
args :
39
40
- --autofix
41
+ - repo : https://github.com/pycqa/flake8
42
+ rev : 7.1.2
43
+ hooks :
40
44
- id : flake8
41
- stages : [commit]
45
+ stages : [pre- commit]
42
46
args :
43
47
- --ignore=F705,E123,E402
44
48
- repo : https://github.com/pryorda/dockerfilelint-precommit-hooks
45
49
rev : v0.1.0
46
50
hooks :
47
51
- id : dockerfilelint
48
- stages : [commit]
52
+ stages : [pre- commit]
49
53
- repo : https://github.com/mattlqx/pre-commit-sign
50
- rev : v1.1.3
54
+ rev : v1.2.0
51
55
hooks :
52
56
- id : sign-commit
53
57
stages : [commit-msg]
You can’t perform that action at this time.
0 commit comments