Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pre-commit hooks, fix black errors #19

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
6 changes: 2 additions & 4 deletions sceptre_cdk_handler/cdk_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down
Loading