Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#13)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate update python

updates:
- [github.com/awslabs/cfn-python-lint: v1.16.0 → v1.18.1](aws-cloudformation/cfn-lint@v1.16.0...v1.18.1)

* Python 3.8 has been deprecated, update to python 3.11

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Khai Do <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and zaro0508 authored Oct 23, 2024
1 parent bc3cbf1 commit 4d4e626
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 105 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.8
python-version: 3.11
- run: pip install -U pipenv
shell: bash

Expand Down
4 changes: 2 additions & 2 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.8
python-version: 3.11
- uses: pre-commit/[email protected]

pytest:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- run: pip install -U pipenv
- run: pipenv sync --dev
- run: pipenv run coverage run -m pytest tests/ -svv
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ dmypy.json

# generated dynamically from Pipfile
requirements.txt

# mac files
.DS_Store
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/awslabs/cfn-python-lint
rev: v1.16.0
rev: v1.18.1
hooks:
- id: cfn-python-lint
files: template\.(json|yml|yaml)$
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ boto3 = "~=1.18"
coverage = "~=7.3"

[requires]
python_version = "3.8"
python_version = "3.11"
188 changes: 89 additions & 99 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Resources:
Properties:
CodeUri: .
Handler: sc_bucket_cleanup/app.lambda_handler
Runtime: python3.8
Runtime: python3.11
Role: !GetAtt FunctionRole.Arn
Events:
BucketCleanup:
Expand Down

0 comments on commit 4d4e626

Please sign in to comment.