@@ -4,22 +4,30 @@ default_language_version:
44 python : python3
55
66repos :
7+ # Check the pre-commit configuration
8+ - repo : meta
9+ hooks :
10+ - id : check-useless-excludes
11+
712 - repo : https://github.com/pre-commit/pre-commit-hooks
8- rev : v4.6 .0
13+ rev : v5.0 .0
914 hooks :
1015 - id : check-case-conflict
1116 - id : check-executables-have-shebangs
1217 - id : check-json
1318 - id : check-merge-conflict
19+ - id : check-shebang-scripts-are-executable
20+ - id : check-symlinks
1421 - id : check-toml
22+ - id : check-vcs-permalinks
1523 - id : check-xml
1624 - id : debug-statements
25+ - id : destroyed-symlinks
1726 - id : detect-aws-credentials
1827 args :
1928 - --allow-missing-credentials
2029 - id : detect-private-key
2130 - id : end-of-file-fixer
22- exclude : files/(issue|motd)
2331 - id : mixed-line-ending
2432 args :
2533 - --fix=lf
@@ -31,22 +39,15 @@ repos:
3139
3240 # Text file hooks
3341 - repo : https://github.com/igorshubovych/markdownlint-cli
34- rev : v0.41 .0
42+ rev : v0.42 .0
3543 hooks :
3644 - id : markdownlint
3745 args :
3846 - --config=.mdl_config.yaml
39- - repo : https://github.com/pre-commit/mirrors-prettier
40- # This is the last version of v3 available from the mirror. We should hold
41- # here until v4, which is currently in alpha, is more stable.
42- rev : v3.1.0
47+ - repo : https://github.com/rbubley/mirrors-prettier
48+ rev : v3.3.3
4349 hooks :
4450 - id : prettier
45- # This is the latest version of v3 available from NPM. The pre-commit
46- # mirror does not pull tags for old major versions once a new major
47- # version tag is published.
48- additional_dependencies :
49- 5051 - repo : https://github.com/adrienverge/yamllint
5152 rev : v1.35.1
5253 hooks :
@@ -56,40 +57,40 @@ repos:
5657
5758 # GitHub Actions hooks
5859 - repo : https://github.com/python-jsonschema/check-jsonschema
59- rev : 0.28 .4
60+ rev : 0.29 .4
6061 hooks :
6162 - id : check-github-actions
6263 - id : check-github-workflows
6364
6465 # pre-commit hooks
6566 - repo : https://github.com/pre-commit/pre-commit
66- rev : v3.7 .1
67+ rev : v4.0 .1
6768 hooks :
6869 - id : validate_manifest
6970
7071 # Go hooks
7172 - repo : https://github.com/TekWizely/pre-commit-golang
7273 rev : v1.0.0-rc.1
7374 hooks :
74- # Style Checkers
75- - id : go-critic
76- # StaticCheck
77- - id : go-staticcheck-repo-mod
7875 # Go Build
7976 - id : go-build-repo-mod
77+ # Style Checkers
78+ - id : go-critic
79+ # goimports
80+ - id : go-imports-repo
81+ args :
82+ # Write changes to files
83+ - -w
8084 # Go Mod Tidy
8185 - id : go-mod-tidy-repo
86+ # GoSec
87+ - id : go-sec-repo-mod
88+ # StaticCheck
89+ - id : go-staticcheck-repo-mod
8290 # Go Test
8391 - id : go-test-repo-mod
8492 # Go Vet
8593 - id : go-vet-repo-mod
86- # GoSec
87- - id : go-sec-repo-mod
88- # goimports
89- - id : go-imports-repo
90- args :
91- # Write changes to files
92- - -w
9394 # Nix hooks
9495 - repo : https://github.com/nix-community/nixpkgs-fmt
9596 rev : v1.3.0
9899
99100 # Shell script hooks
100101 - repo : https://github.com/scop/pre-commit-shfmt
101- rev : v3.8 .0-1
102+ rev : v3.10 .0-1
102103 hooks :
103104 - id : shfmt
104105 args :
@@ -122,37 +123,49 @@ repos:
122123
123124 # Python hooks
124125 - repo : https://github.com/PyCQA/bandit
125- rev : 1.7.8
126+ rev : 1.7.10
126127 hooks :
127128 - id : bandit
128129 args :
129130 - --config=.bandit.yml
130131 - repo : https://github.com/psf/black-pre-commit-mirror
131- rev : 24.4.2
132+ rev : 24.10.0
132133 hooks :
133134 - id : black
134135 - repo : https://github.com/PyCQA/flake8
135- rev : 7.0.0
136+ rev : 7.1.1
136137 hooks :
137138 - id : flake8
138139 additional_dependencies :
139- - flake8-docstrings
140+ - flake8-docstrings==1.7.0
140141 - repo : https://github.com/PyCQA/isort
141142 rev : 5.13.2
142143 hooks :
143144 - id : isort
144145 - repo : https://github.com/pre-commit/mirrors-mypy
145- rev : v1.10 .0
146+ rev : v1.13 .0
146147 hooks :
147148 - id : mypy
149+ - repo : https://github.com/pypa/pip-audit
150+ rev : v2.7.3
151+ hooks :
152+ - id : pip-audit
153+ args :
154+ # Add any pip requirements files to scan
155+ - --requirement
156+ - requirements-dev.txt
157+ - --requirement
158+ - requirements-test.txt
159+ - --requirement
160+ - requirements.txt
148161 - repo : https://github.com/asottile/pyupgrade
149- rev : v3.15.2
162+ rev : v3.19.0
150163 hooks :
151164 - id : pyupgrade
152165
153166 # Ansible hooks
154167 - repo : https://github.com/ansible/ansible-lint
155- rev : v24.6.0
168+ rev : v24.9.2
156169 hooks :
157170 - id : ansible-lint
158171 additional_dependencies :
@@ -177,7 +190,7 @@ repos:
177190
178191 # Terraform hooks
179192 - repo : https://github.com/antonbabenko/pre-commit-terraform
180- rev : v1.90.0
193+ rev : v1.96.1
181194 hooks :
182195 - id : terraform_fmt
183196 - id : terraform_validate
@@ -190,7 +203,7 @@ repos:
190203
191204 # Packer hooks
192205 - repo : https://github.com/cisagov/pre-commit-packer
193- rev : v0.0.2
206+ rev : v0.3.0
194207 hooks :
195- - id : packer_validate
196208 - id : packer_fmt
209+ - id : packer_validate
0 commit comments