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 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)