Skip to content

Commit

Permalink
[IT-3819] Address dependabot findings
Browse files Browse the repository at this point in the history
Update dependencies to address dependabot findings and update to the
latest version of python. Also update github actions with changes from
lambda-template including formatting README.md with mdformat.
  • Loading branch information
ConsoleCatzirl committed Oct 31, 2024
1 parent fdc9b1f commit 1076701
Show file tree
Hide file tree
Showing 6 changed files with 417 additions and 371 deletions.
2 changes: 1 addition & 1 deletion .github/actions/sam-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
# Convert Pipfile.lock to requirements.txt for sam
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
- run: pip install -U pipenv
shell: bash

Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
- uses: pre-commit/[email protected]

pytest:
Expand All @@ -23,13 +23,15 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.12
- run: pip install -U pipenv
- run: pipenv install --dev
- run: pipenv sync --dev
- run: pipenv run coverage run -m pytest tests/ -svv
- run: pipenv run coverage lcov
- name: upload coverage to coveralls
uses: coverallsapp/github-action@v2
with:
file: coverage.lcov
fail-on-error: false

sam-build-and-lint:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
# On Windows, git will convert all CRLF to LF, but only after all hooks are done executing.
# yamllint will fail before git has a chance to convert line endings, so line endings must be explicitly converted before yamllint
Expand All @@ -15,7 +15,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/awslabs/cfn-python-lint
rev: v1.15.2
rev: v1.18.3
hooks:
- id: cfn-python-lint
files: template\.(json|yml|yaml)$
Expand All @@ -24,7 +24,7 @@ repos:
hooks:
- id: remove-tabs
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
language_version: python3.9
language_version: python3.12
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
pytest = "~=7.1"
pytest = "~=8.1"
pytest-mock = "~=3.8"
boto3 = "~=1.24"
requests-mock = "~=1.10"
Expand All @@ -17,4 +17,4 @@ validators = "~=0.20"
urllib3 = "<2.0" # pin for boto3

[requires]
python_version = "3.9"
python_version = "3.12"
Loading

0 comments on commit 1076701

Please sign in to comment.