From 200eacab79f478ccfcb92990e4fcce4796ceccb8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 23:37:57 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.3) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa3eb74..c6f2769 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: - id: check-yaml - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.3 hooks: - id: ruff args: ["--fix", "--show-fixes"] From 91e63ae25ceb9629db6c5105fac6a7e787803d4c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 23:43:31 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- harmony_service/adapter.py | 3 +-- hybig/browse.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/harmony_service/adapter.py b/harmony_service/adapter.py index 3dce207..11dc362 100644 --- a/harmony_service/adapter.py +++ b/harmony_service/adapter.py @@ -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): diff --git a/hybig/browse.py b/hybig/browse.py index ea51851..edb7c77 100644 --- a/hybig/browse.py +++ b/hybig/browse.py @@ -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