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 Jan 13, 2025
1 parent e746a5a commit 060c183
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions harmony_service/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def validate_message(self):
if has_scale_extents(self.message) or has_scale_sizes(self.message):
if not has_crs(self.message):
raise HyBIGInvalidMessageError(
'Harmony message must include a crs '
'with scaleExtent or scaleSizes.'
'Harmony message must include a crs with scaleExtent or scaleSizes.'
)

if not has_valid_scale_extents(self.message):
Expand Down
2 changes: 1 addition & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def get_tiled_filename(input_file: Path, locator: dict | None = None) -> Path:
"""
if locator is not None:
return input_file.with_suffix(
f".r{int(locator['row']):02d}c{int(locator['col']):02d}{input_file.suffix}"
f'.r{int(locator["row"]):02d}c{int(locator["col"]):02d}{input_file.suffix}'
)
return input_file

Expand Down

0 comments on commit 060c183

Please sign in to comment.