From 938e5c9e7302bd49ecc32aeeb6c5cdf5db308098 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Thu, 29 Feb 2024 17:01:16 -0800 Subject: [PATCH] update pre-commit hooks, fix black errors --- .pre-commit-config.yaml | 10 +++++----- sceptre_cdk_handler/cdk_builder.py | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 11d46dd..38a8870 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,11 +13,11 @@ repos: hooks: - id: flake8 - repo: https://github.com/adrienverge/yamllint - rev: v1.33.0 + rev: v1.35.1 hooks: - id: yamllint - repo: https://github.com/awslabs/cfn-python-lint - rev: v0.84.0 + rev: v0.85.3 hooks: - id: cfn-python-lint args: @@ -36,18 +36,18 @@ repos: ^.pre-commit-config.yaml ) - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.2.0 hooks: - id: black - repo: https://github.com/python-poetry/poetry - rev: '1.7.0' + rev: '1.8.0' hooks: - id: poetry-check - id: poetry-lock language_version: python3.10 args: ['--check'] - repo: https://github.com/sirosen/check-jsonschema - rev: 0.27.3 + rev: 0.28.0 hooks: - id: check-github-workflows - id: check-github-actions diff --git a/sceptre_cdk_handler/cdk_builder.py b/sceptre_cdk_handler/cdk_builder.py index 5ea5bb9..d3745c7 100644 --- a/sceptre_cdk_handler/cdk_builder.py +++ b/sceptre_cdk_handler/cdk_builder.py @@ -51,8 +51,7 @@ def __init__( @abstractmethod def build_template( self, cdk_context: Optional[dict], sceptre_user_data: Any - ) -> dict: - ... + ) -> dict: ... def _publish_artifacts(self, artifact_file: str, envs: Dict[str, str]): self._logger.info("Publishing CDK assets") @@ -153,8 +152,7 @@ def _get_assets_manifest(self, cloud_assembly: CloudAssembly): return asset_artifacts @abstractmethod - def _synthesize(self, cdk_context: Optional[dict], sceptre_user_data: Any): - ... + def _synthesize(self, cdk_context: Optional[dict], sceptre_user_data: Any): ... def _get_template(self, cloud_assembly: CloudAssembly) -> dict: return cloud_assembly.get_stack_by_name(self.STACK_LOGICAL_ID).template