Skip to content

Commit 761e993

Browse files
authored
Merge pull request #47 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents ea01703 + 915a52c commit 761e993

File tree

3 files changed

+44
-23
lines changed

3 files changed

+44
-23
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ updates:
2020
- dependency-name: mxschmitt/action-tmate
2121
- dependency-name: step-security/harden-runner
2222
# Managed by cisagov/skeleton-ansible-role
23+
- dependency-name: docker/setup-buildx-action
24+
- dependency-name: docker/setup-qemu-action
2325
- dependency-name: github/codeql-action
2426
package-ecosystem: github-actions
2527
schedule:

.pre-commit-config.yaml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ default_language_version:
55

66
repos:
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
@@ -31,7 +31,7 @@ repos:
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:
@@ -46,7 +46,7 @@ repos:
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

@@ -98,7 +98,7 @@ repos:
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|systemd_enabled)/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,24 +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
160-
# files: molecule/default/playbook.yml
161+
additional_dependencies:
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.
175+
#
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
161180

162181
# Terraform hooks
163182
- repo: https://github.com/antonbabenko/pre-commit-terraform
164-
rev: v1.88.0
183+
rev: v1.90.0
165184
hooks:
166185
- id: terraform_fmt
167186
- id: terraform_validate

requirements.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
# jumping to another major version without testing, since there are
1313
# often breaking changes across major versions. This is the reason
1414
# for the upper bound.
15-
ansible>=8,<10
16-
# TODO: Remove this pin when possible. See
17-
# cisagov/skeleton-ansible-role#178 for more details.
18-
#
19-
# ansible-core 2.16.3 and later suffer from the bug discussed in
15+
ansible>=9,<10
16+
# ansible-core 2.16.3 through 2.16.6 suffer from the bug discussed in
2017
# ansible/ansible#82702, which breaks any symlinked files in vars,
2118
# tasks, etc. for any Ansible role installed via ansible-galaxy.
19+
# Hence we never want to install those versions.
2220
#
23-
# See also cisagov/skeleton-packer#312.
24-
ansible-core<2.16.3
21+
# Note that any changes made to this dependency must also be made in
22+
# requirements.txt in cisagov/skeleton-packer and
23+
# .pre-commit-config.yaml in cisagov/skeleton-generic.
24+
ansible-core>=2.16.7
2525
setuptools
2626
wheel

0 commit comments

Comments
 (0)