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

[pre-commit.ci] pre-commit autoupdate #44

Merged
merged 2 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
pre-commit-ci[bot] committed Jan 27, 2025
commit 91e63ae25ceb9629db6c5105fac6a7e787803d4c
3 changes: 1 addition & 2 deletions harmony_service/adapter.py
Original file line number Diff line number Diff line change
@@ -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):
2 changes: 1 addition & 1 deletion hybig/browse.py
Original file line number Diff line number Diff line change
@@ -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}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks ruff?

)
return input_file