Skip to content

Commit

Permalink
Admin: Ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Dec 29, 2024
1 parent d773bb2 commit c9cc24f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
7 changes: 4 additions & 3 deletions moto/awslambda/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,9 +989,10 @@ def _invoke_lambda(self, event: Optional[str] = None) -> Tuple[str, bool, str]:
container = exit_code = None
log_config = docker.types.LogConfig(type=docker.types.LogConfig.types.JSON)

with _DockerDataVolumeContext(
self
) as data_vol, _DockerDataVolumeLayerContext(self) as layer_context:
with (
_DockerDataVolumeContext(self) as data_vol,
_DockerDataVolumeLayerContext(self) as layer_context,
):
try:
run_kwargs: Dict[str, Any] = dict()
network_name = settings.moto_network_name()
Expand Down
2 changes: 1 addition & 1 deletion moto/stepfunctions/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def update_state_machine(self) -> TYPE_RESPONSE:
)
response = {"updateDate": state_machine.update_date}
if publish:
response["stateMachineVersionArn"] = state_machine.latest_version.arn # type: ignore
response["stateMachineVersionArn"] = state_machine.latest_version.arn # type: ignore
return 200, {}, json.dumps(response)

def list_tags_for_resource(self) -> TYPE_RESPONSE:
Expand Down

0 comments on commit c9cc24f

Please sign in to comment.