Skip to content

Commit fa8e4d7

Browse files
committed
Merge github.com:cisagov/skeleton-generic into lineage/skeleton
2 parents 52265b1 + bd762fe commit fa8e4d7

File tree

4 files changed

+39
-18
lines changed

4 files changed

+39
-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: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,35 +31,54 @@ 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

63+
# Go hooks
64+
- repo: https://github.com/TekWizely/pre-commit-golang
65+
rev: v1.0.0-rc.1
66+
hooks:
67+
# Style Checkers
68+
- id: go-critic
69+
# StaticCheck
70+
- id: go-staticcheck-repo-mod
71+
# Go Build
72+
- id: go-build-repo-mod
73+
# Go Mod Tidy
74+
- id: go-mod-tidy-repo
75+
# Go Test
76+
- id: go-test-repo-mod
77+
# Go Vet
78+
- id: go-vet-repo-mod
79+
# GoSec
80+
- id: go-sec-repo-mod
81+
6382
# Shell script hooks
6483
- repo: https://github.com/cisagov/pre-commit-shfmt
6584
rev: v0.0.2
@@ -90,7 +109,7 @@ repos:
90109
args:
91110
- --config=.bandit.yml
92111
- repo: https://github.com/psf/black
93-
rev: 23.1.0
112+
rev: 23.3.0
94113
hooks:
95114
- id: black
96115
- repo: https://github.com/PyCQA/flake8
@@ -104,31 +123,31 @@ repos:
104123
hooks:
105124
- id: isort
106125
- repo: https://github.com/pre-commit/mirrors-mypy
107-
rev: v1.1.1
126+
rev: v1.3.0
108127
hooks:
109128
- id: mypy
110129
- repo: https://github.com/asottile/pyupgrade
111-
rev: v3.3.1
130+
rev: v3.4.0
112131
hooks:
113132
- id: pyupgrade
114133

115134
# Ansible hooks
116135
- repo: https://github.com/ansible-community/ansible-lint
117-
rev: v5.4.0
136+
rev: v6.17.0
118137
hooks:
119138
- id: ansible-lint
120139
# files: molecule/default/playbook.yml
121140

122141
# Terraform hooks
123142
- repo: https://github.com/antonbabenko/pre-commit-terraform
124-
rev: v1.77.1
143+
rev: v1.80.0
125144
hooks:
126145
- id: terraform_fmt
127146
- id: terraform_validate
128147

129148
# Docker hooks
130149
- repo: https://github.com/IamTheFij/docker-pre-commit
131-
rev: v2.1.1
150+
rev: v3.0.1
132151
hooks:
133152
- id: docker-compose-check
134153

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)