From 1c03f2d86c937f6175f4e9f700c5168a6ece0214 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:48:34 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/awslabs/cfn-python-lint: v0.83.8 → v0.85.0](https://github.com/awslabs/cfn-python-lint/compare/v0.83.8...v0.85.0) - [github.com/psf/black: 23.1.0 → 24.1.1](https://github.com/psf/black/compare/23.1.0...24.1.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 084a7c93a..9c25517c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: hooks: - id: yamllint - repo: https://github.com/awslabs/cfn-python-lint - rev: v0.83.8 + rev: v0.85.0 hooks: - id: cfn-python-lint args: @@ -36,7 +36,7 @@ repos: ^.pre-commit-config.yaml ) - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/python-poetry/poetry From 5c2590c269bf5cac6cc778a8a85ac852546ba1da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 18:49:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- sceptre/connection_manager.py | 6 +++--- tests/test_diffing/test_stack_differ.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sceptre/connection_manager.py b/sceptre/connection_manager.py index 0e752c946..a27ad3f4b 100644 --- a/sceptre/connection_manager.py +++ b/sceptre/connection_manager.py @@ -316,9 +316,9 @@ def _get_session( "RoleSessionName": session_name, } if self.sceptre_role_session_duration: - assume_role_kwargs[ - "DurationSeconds" - ] = self.sceptre_role_session_duration + assume_role_kwargs["DurationSeconds"] = ( + self.sceptre_role_session_duration + ) sts_response = sts_client.assume_role(**assume_role_kwargs) credentials = sts_response["Credentials"] diff --git a/tests/test_diffing/test_stack_differ.py b/tests/test_diffing/test_stack_differ.py index b55bbb876..1c6d272fc 100644 --- a/tests/test_diffing/test_stack_differ.py +++ b/tests/test_diffing/test_stack_differ.py @@ -421,9 +421,9 @@ def test_diff__generated_template_has_no_echo_parameter__masks_value(self): self.local_no_echo_parameters.append("hide_me") expected_generated_config = self.expected_generated_config - expected_generated_config.parameters[ - "hide_me" - ] = StackDiffer.NO_ECHO_REPLACEMENT + expected_generated_config.parameters["hide_me"] = ( + StackDiffer.NO_ECHO_REPLACEMENT + ) self.differ.diff(self.actions)