Skip to content

Commit 247d7f0

Browse files
authored
Merge pull request #36 from cisagov/lineage/skeleton
⚠️ CONFLICT! Lineage pull request for: skeleton
2 parents cfb4f62 + f66cc5a commit 247d7f0

File tree

4 files changed

+27
-17
lines changed

4 files changed

+27
-17
lines changed

.bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ tests:
1111
# - B102
1212

1313
skips:
14-
- B101 # skip "assert used" check since assertions are required in pytests
14+
- B101 # skip "assert used" check since assertions are required in pytests

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ jobs:
126126
run: |
127127
python -m pip install --upgrade pip
128128
pip install --upgrade --requirement requirements-test.txt
129-
- name: Validate Packer configuration
130-
run: packer validate src/packer.json
131129
- name: Run tests
132130
env:
133131
GITHUB_RELEASE_TAG: ${{ github.event.release.tag_name }}

.pre-commit-config.yaml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ default_language_version:
55

66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v3.2.0
8+
rev: v3.4.0
99
hooks:
10+
- id: check-case-conflict
1011
- id: check-executables-have-shebangs
1112
- id: check-json
1213
- id: check-merge-conflict
14+
- id: check-toml
1315
- id: check-xml
1416
- id: debug-statements
1517
- id: detect-aws-credentials
@@ -29,19 +31,21 @@ repos:
2931

3032
# Text file hooks
3133
- repo: https://github.com/igorshubovych/markdownlint-cli
32-
rev: v0.24.0
34+
rev: v0.26.0
3335
hooks:
3436
- id: markdownlint
3537
args:
3638
- --config=.mdl_config.json
37-
- repo: https://github.com/prettier/pre-commit
38-
rev: v2.1.2
39+
- repo: https://github.com/pre-commit/mirrors-prettier
40+
rev: v2.2.1
3941
hooks:
4042
- id: prettier
4143
- repo: https://github.com/adrienverge/yamllint
4244
rev: v1.25.0
4345
hooks:
4446
- id: yamllint
47+
args:
48+
- --strict
4549

4650
# Shell script hooks
4751
- repo: https://github.com/detailyang/pre-commit-shell
@@ -51,7 +55,7 @@ repos:
5155

5256
# Python hooks
5357
- repo: https://github.com/PyCQA/bandit
54-
rev: 1.6.2
58+
rev: 1.7.0
5559
hooks:
5660
- id: bandit
5761
name: bandit (tests tree)
@@ -60,12 +64,12 @@ repos:
6064
- --config=.bandit.yml
6165
# Run bandit everything but tests directory
6266
- repo: https://github.com/PyCQA/bandit
63-
rev: 1.6.2
67+
rev: 1.7.0
6468
hooks:
6569
- id: bandit
6670
name: bandit (everything else)
6771
exclude: tests
68-
- repo: https://github.com/python/black
72+
- repo: https://github.com/psf/black
6973
rev: 20.8b1
7074
hooks:
7175
- id: black
@@ -75,29 +79,29 @@ repos:
7579
- id: flake8
7680
additional_dependencies:
7781
- flake8-docstrings
78-
- repo: https://github.com/timothycrosley/isort
79-
rev: 5.6.4
82+
- repo: https://github.com/PyCQA/isort
83+
rev: 5.7.0
8084
hooks:
8185
- id: isort
8286
- repo: https://github.com/pre-commit/mirrors-mypy
8387
rev: v0.790
8488
hooks:
8589
- id: mypy
8690
- repo: https://github.com/asottile/pyupgrade
87-
rev: v2.7.2
91+
rev: v2.7.4
8892
hooks:
8993
- id: pyupgrade
9094

9195
# Ansible hooks
92-
- repo: https://github.com/ansible/ansible-lint.git
93-
rev: v4.3.5
96+
- repo: https://github.com/ansible-community/ansible-lint
97+
rev: v4.3.7
9498
hooks:
9599
- id: ansible-lint
96100
# files: molecule/default/playbook.yml
97101

98102
# Terraform hooks
99-
- repo: https://github.com/antonbabenko/pre-commit-terraform.git
100-
rev: v1.43.0
103+
- repo: https://github.com/antonbabenko/pre-commit-terraform
104+
rev: v1.45.0
101105
hooks:
102106
- id: terraform_fmt
103107
# There are ongoing issues with how this command works. This issue
@@ -122,3 +126,10 @@ repos:
122126
rev: v2.0.0
123127
hooks:
124128
- id: docker-compose-check
129+
130+
# Packer hooks
131+
- repo: https://github.com/cisagov/pre-commit-packer
132+
rev: v0.0.2
133+
hooks:
134+
- id: packer_validate
135+
- id: packer_fmt

src/requirements.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
- src: https://github.com/cisagov/ansible-role-amazon-ssm-agent
23
name: amazon_ssm_agent
34
- src: https://github.com/cisagov/ansible-role-banner

0 commit comments

Comments
 (0)