Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2024
1 parent bc0bbc2 commit 9bd48c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion odc/geo/cog/_az.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ def finalise(self, parts: List[Dict[str, Any]]) -> str:
:param parts: List of uploaded parts metadata.
:return: ETag of the finalised blob.
"""
return self.mpu.finalise(parts)
return self.mpu.finalise(parts)
2 changes: 1 addition & 1 deletion odc/geo/cog/_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def finalise(self, parts: List[Dict[str, Any]]) -> str:
MultipartUpload={"Parts": parts},
)
return rr["ETag"]

@property
def started(self) -> bool:
"""Check if the multipart upload has been initiated."""
Expand Down
2 changes: 1 addition & 1 deletion odc/geo/cog/_tifffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ def save_cog_with_dask(
xx_odc = xx.odc
assert isinstance(xx_odc, ODCExtensionDa)
assert isinstance(xx_odc.geobox, GeoBox) or xx_odc.geobox is None

ydim = xx_odc.ydim
data_chunks: Tuple[int, int] = xx.data.chunksize[ydim:ydim + 2]
if isinstance(blocksize, Unset):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_az.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def test_azure_multipart_upload(self, mock_blob_service_client):
mcc = mock_container_client
mock_blob_service_client.return_value.get_container_client.return_value = mcc
mock_container_client.get_blob_client.return_value = mock_blob_client

# Simulate return values for Azure Blob SDK methods
mock_blob_client.get_blob_properties.return_value.etag = "mock-etag"

Expand Down

0 comments on commit 9bd48c9

Please sign in to comment.