Skip to content

Commit 42f481c

Browse files
authored
Merge branch 'develop' into add-go-hooks
2 parents 7f372e6 + edf1338 commit 42f481c

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.ansible-lint

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
# See https://ansible-lint.readthedocs.io/en/latest/configuring.html
3-
# for a list of the configuration elements that can exist in this
4-
# file.
2+
# See https://ansible-lint.readthedocs.io/configuring/ for a list of
3+
# the configuration elements that can exist in this file.
54
enable_list:
65
# Useful checks that one must opt-into. See here for more details:
7-
# https://ansible-lint.readthedocs.io/en/latest/rules.html
6+
# https://ansible-lint.readthedocs.io/rules/
87
- fcqn-builtins
98
- no-log-password
109
- no-same-owner

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ jobs:
2929
- id: setup-go
3030
uses: actions/setup-go@v4
3131
with:
32-
go-version: "1.19"
32+
# There is no expectation for actual Go code so we disable caching as
33+
# it relies on the existence of a go.sum file.
34+
cache: false
35+
go-version: "1.20"
3336
- name: Lookup Go cache directory
3437
id: go-cache
3538
run: |

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,32 +31,32 @@ repos:
3131

3232
# Text file hooks
3333
- repo: https://github.com/igorshubovych/markdownlint-cli
34-
rev: v0.33.0
34+
rev: v0.34.0
3535
hooks:
3636
- id: markdownlint
3737
args:
3838
- --config=.mdl_config.yaml
3939
- repo: https://github.com/pre-commit/mirrors-prettier
40-
rev: v3.0.0-alpha.6
40+
rev: v3.0.0-alpha.9-for-vscode
4141
hooks:
4242
- id: prettier
4343
- repo: https://github.com/adrienverge/yamllint
44-
rev: v1.30.0
44+
rev: v1.32.0
4545
hooks:
4646
- id: yamllint
4747
args:
4848
- --strict
4949

5050
# GitHub Actions hooks
5151
- repo: https://github.com/python-jsonschema/check-jsonschema
52-
rev: 0.22.0
52+
rev: 0.23.1
5353
hooks:
5454
- id: check-github-actions
5555
- id: check-github-workflows
5656

5757
# pre-commit hooks
5858
- repo: https://github.com/pre-commit/pre-commit
59-
rev: v3.2.1
59+
rev: v3.3.2
6060
hooks:
6161
- id: validate_manifest
6262

@@ -107,7 +107,7 @@ repos:
107107
args:
108108
- --config=.bandit.yml
109109
- repo: https://github.com/psf/black
110-
rev: 23.1.0
110+
rev: 23.3.0
111111
hooks:
112112
- id: black
113113
- repo: https://github.com/PyCQA/flake8
@@ -121,31 +121,31 @@ repos:
121121
hooks:
122122
- id: isort
123123
- repo: https://github.com/pre-commit/mirrors-mypy
124-
rev: v1.1.1
124+
rev: v1.3.0
125125
hooks:
126126
- id: mypy
127127
- repo: https://github.com/asottile/pyupgrade
128-
rev: v3.3.1
128+
rev: v3.4.0
129129
hooks:
130130
- id: pyupgrade
131131

132132
# Ansible hooks
133133
- repo: https://github.com/ansible-community/ansible-lint
134-
rev: v5.4.0
134+
rev: v6.17.0
135135
hooks:
136136
- id: ansible-lint
137137
# files: molecule/default/playbook.yml
138138

139139
# Terraform hooks
140140
- repo: https://github.com/antonbabenko/pre-commit-terraform
141-
rev: v1.77.1
141+
rev: v1.80.0
142142
hooks:
143143
- id: terraform_fmt
144144
- id: terraform_validate
145145

146146
# Docker hooks
147147
- repo: https://github.com/IamTheFij/docker-pre-commit
148-
rev: v2.1.1
148+
rev: v3.0.1
149149
hooks:
150150
- id: docker-compose-check
151151

setup-env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ done
6565
eval set -- "$PARAMS"
6666

6767
# Check to see if pyenv is installed
68-
if [ -z "$(command -v pyenv)" ] || [ -z "$(command -v pyenv-virtualenv)" ]; then
68+
if [ -z "$(command -v pyenv)" ] || { [ -z "$(command -v pyenv-virtualenv)" ] && [ ! -f "$(pyenv root)/plugins/pyenv-virtualenv/bin/pyenv-virtualenv" ]; }; then
6969
echo "pyenv and pyenv-virtualenv are required."
7070
if [[ "$OSTYPE" == "darwin"* ]]; then
7171
cat << 'END_OF_LINE'
@@ -186,5 +186,5 @@ else:
186186
END_OF_LINE
187187
)"
188188

189-
# Qapla
189+
# Qapla'
190190
echo "Success!"

0 commit comments

Comments
 (0)