@@ -5,7 +5,7 @@ default_language_version:
55
66repos :
77 - repo : https://github.com/pre-commit/pre-commit-hooks
8- rev : v4.5 .0
8+ rev : v4.6 .0
99 hooks :
1010 - id : check-case-conflict
1111 - id : check-executables-have-shebangs
3131
3232 # Text file hooks
3333 - repo : https://github.com/igorshubovych/markdownlint-cli
34- rev : v0.39 .0
34+ rev : v0.41 .0
3535 hooks :
3636 - id : markdownlint
3737 args :
4646 # mirror does not pull tags for old major versions once a new major
4747 # version tag is published.
4848 additional_dependencies :
49- - prettier@3.2.5
49+ - prettier@3.3.1
5050 - repo : https://github.com/adrienverge/yamllint
5151 rev : v1.35.1
5252 hooks :
@@ -56,14 +56,14 @@ repos:
5656
5757 # GitHub Actions hooks
5858 - repo : https://github.com/python-jsonschema/check-jsonschema
59- rev : 0.28.0
59+ rev : 0.28.4
6060 hooks :
6161 - id : check-github-actions
6262 - id : check-github-workflows
6363
6464 # pre-commit hooks
6565 - repo : https://github.com/pre-commit/pre-commit
66- rev : v3.6.2
66+ rev : v3.7.1
6767 hooks :
6868 - id : validate_manifest
6969
9898
9999 # Shell script hooks
100100 - repo : https://github.com/scop/pre-commit-shfmt
101- rev : v3.7 .0-4
101+ rev : v3.8 .0-1
102102 hooks :
103103 - id : shfmt
104104 args :
@@ -116,21 +116,22 @@ repos:
116116 # Redirect operators are followed by a space
117117 - --space-redirects
118118 - repo : https://github.com/shellcheck-py/shellcheck-py
119- rev : v0.9 .0.6
119+ rev : v0.10 .0.1
120120 hooks :
121121 - id : shellcheck
122122
123123 # Python hooks
124124 - repo : https://github.com/PyCQA/bandit
125- rev : 1.7.7
125+ rev : 1.7.8
126126 hooks :
127127 - id : bandit
128- # Bandit complains about the use of assert() in tests
129- exclude : molecule/(default|disable_stub_resolver|specify_resolv_conf_target)/tests
128+ # Bandit complains about the use of assert() in tests. This should cover
129+ # the tests/ subdirectory for any molecule scenario.
130+ exclude : molecule/[^/]+/tests
130131 args :
131132 - --config=.bandit.yml
132133 - repo : https://github.com/psf/black-pre-commit-mirror
133- rev : 24.2.0
134+ rev : 24.4.2
134135 hooks :
135136 - id : black
136137 - repo : https://github.com/PyCQA/flake8
@@ -144,38 +145,42 @@ repos:
144145 hooks :
145146 - id : isort
146147 - repo : https://github.com/pre-commit/mirrors-mypy
147- rev : v1.8 .0
148+ rev : v1.10 .0
148149 hooks :
149150 - id : mypy
150151 - repo : https://github.com/asottile/pyupgrade
151- rev : v3.15.1
152+ rev : v3.15.2
152153 hooks :
153154 - id : pyupgrade
154155
155156 # Ansible hooks
156157 - repo : https://github.com/ansible/ansible-lint
157- rev : v24.2 .0
158+ rev : v24.6 .0
158159 hooks :
159160 - id : ansible-lint
160161 additional_dependencies :
161- # Per the documentation and the pre-commit hook
162- # configuration, ansible-lint does not know about modules
163- # that live outside of ansible-core. See these links for
164- # more details:
165- # - https://github.com/ansible/ansible-lint/blob/main/src/ansiblelint/rules/syntax_check.md#syntax-checkunknown-module
166- # - https://github.com/ansible/ansible-lint/blob/ad0157eb38059b02d57458504340209f221e3189/.pre-commit-hooks.yaml#L14-L19
162+ # On its own ansible-lint does not pull in ansible, only
163+ # ansible-core. Therefore, if an Ansible module lives in
164+ # ansible instead of ansible-core, the linter will complain
165+ # that the module is unknown. In these cases it is
166+ # necessary to add the ansible package itself as an
167+ # additional dependency, with the same pinning as is done in
168+ # requirements-test.txt of cisagov/skeleton-ansible-role.
169+ - ansible>=9,<10
170+ # ansible-core 2.16.3 through 2.16.6 suffer from the bug
171+ # discussed in ansible/ansible#82702, which breaks any
172+ # symlinked files in vars, tasks, etc. for any Ansible role
173+ # installed via ansible-galaxy. Hence we never want to
174+ # install those versions.
167175 #
168- # Since ansible.posix.mount lives inside of the ansible
169- # package itself, we must include that package here.
170- #
171- # Note also that for consistency's sake we pull in the same
172- # version of ansible that is used in requirements-test.txt.
173- - ansible>=8,<10
174- # files: molecule/default/playbook.yml
176+ # Note that any changes made to this dependency must also be
177+ # made in requirements.txt in cisagov/skeleton-packer and
178+ # requirements-test.txt in cisagov/skeleton-ansible-role.
179+ - ansible-core>=2.16.7
175180
176181 # Terraform hooks
177182 - repo : https://github.com/antonbabenko/pre-commit-terraform
178- rev : v1.88 .0
183+ rev : v1.90 .0
179184 hooks :
180185 - id : terraform_fmt
181186 - id : terraform_validate
0 commit comments