@@ -5,11 +5,13 @@ default_language_version:
5
5
6
6
repos :
7
7
- repo : https://github.com/pre-commit/pre-commit-hooks
8
- rev : v3.2 .0
8
+ rev : v3.4 .0
9
9
hooks :
10
+ - id : check-case-conflict
10
11
- id : check-executables-have-shebangs
11
12
- id : check-json
12
13
- id : check-merge-conflict
14
+ - id : check-toml
13
15
- id : check-xml
14
16
- id : debug-statements
15
17
- id : detect-aws-credentials
@@ -29,19 +31,21 @@ repos:
29
31
30
32
# Text file hooks
31
33
- repo : https://github.com/igorshubovych/markdownlint-cli
32
- rev : v0.24 .0
34
+ rev : v0.26 .0
33
35
hooks :
34
36
- id : markdownlint
35
37
args :
36
38
- --config=.mdl_config.json
37
- - repo : https://github.com/prettier/ pre-commit
38
- rev : v2.1.2
39
+ - repo : https://github.com/pre-commit/mirrors-prettier
40
+ rev : v2.2.1
39
41
hooks :
40
42
- id : prettier
41
43
- repo : https://github.com/adrienverge/yamllint
42
44
rev : v1.25.0
43
45
hooks :
44
46
- id : yamllint
47
+ args :
48
+ - --strict
45
49
46
50
# Shell script hooks
47
51
- repo : https://github.com/detailyang/pre-commit-shell
51
55
52
56
# Python hooks
53
57
- repo : https://github.com/PyCQA/bandit
54
- rev : 1.6.2
58
+ rev : 1.7.0
55
59
hooks :
56
60
- id : bandit
57
61
name : bandit (tests tree)
@@ -60,12 +64,12 @@ repos:
60
64
- --config=.bandit.yml
61
65
# Run bandit everything but tests directory
62
66
- repo : https://github.com/PyCQA/bandit
63
- rev : 1.6.2
67
+ rev : 1.7.0
64
68
hooks :
65
69
- id : bandit
66
70
name : bandit (everything else)
67
71
exclude : tests
68
- - repo : https://github.com/python /black
72
+ - repo : https://github.com/psf /black
69
73
rev : 20.8b1
70
74
hooks :
71
75
- id : black
@@ -75,29 +79,29 @@ repos:
75
79
- id : flake8
76
80
additional_dependencies :
77
81
- flake8-docstrings
78
- - repo : https://github.com/timothycrosley /isort
79
- rev : 5.6.4
82
+ - repo : https://github.com/PyCQA /isort
83
+ rev : 5.7.0
80
84
hooks :
81
85
- id : isort
82
86
- repo : https://github.com/pre-commit/mirrors-mypy
83
87
rev : v0.790
84
88
hooks :
85
89
- id : mypy
86
90
- repo : https://github.com/asottile/pyupgrade
87
- rev : v2.7.2
91
+ rev : v2.7.4
88
92
hooks :
89
93
- id : pyupgrade
90
94
91
95
# Ansible hooks
92
- - repo : https://github.com/ansible/ansible-lint.git
93
- rev : v4.3.5
96
+ - repo : https://github.com/ansible-community /ansible-lint
97
+ rev : v4.3.7
94
98
hooks :
95
99
- id : ansible-lint
96
100
# files: molecule/default/playbook.yml
97
101
98
102
# Terraform hooks
99
- - repo : https://github.com/antonbabenko/pre-commit-terraform.git
100
- rev : v1.43 .0
103
+ - repo : https://github.com/antonbabenko/pre-commit-terraform
104
+ rev : v1.45 .0
101
105
hooks :
102
106
- id : terraform_fmt
103
107
# There are ongoing issues with how this command works. This issue
@@ -122,3 +126,10 @@ repos:
122
126
rev : v2.0.0
123
127
hooks :
124
128
- id : docker-compose-check
129
+
130
+ # Packer hooks
131
+ - repo : https://github.com/cisagov/pre-commit-packer
132
+ rev : v0.0.2
133
+ hooks :
134
+ - id : packer_validate
135
+ - id : packer_fmt
0 commit comments