From b6895f962a1315c060f60dac9b68d924d28051d2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 20:43:35 +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/psf/black-pre-commit-mirror: 25.11.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.11.0...26.3.1) - [github.com/astral-sh/ruff-pre-commit: v0.14.7 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.7...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.0 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.20.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e945887..f430caf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,20 +18,20 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black-pre-commit-mirror - rev: "25.11.0" + rev: "26.3.1" hooks: - id: black args: [--preview, --enable-unstable-feature, string_processing] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.7 + rev: v0.15.9 hooks: - id: ruff args: [--preview, --fix, --exit-non-zero-on-fix] types_or: [python, jupyter] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.19.0" + rev: "v1.20.0" hooks: - id: mypy additional_dependencies: From 36f60014fc47aa36360bdcf05dc8afa44fe5ce90 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 20:46:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/opera_utils/disp/create_incidence_range.py | 4 ++-- src/opera_utils/stitching.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opera_utils/disp/create_incidence_range.py b/src/opera_utils/disp/create_incidence_range.py index 50c2b06..166c8c6 100755 --- a/src/opera_utils/disp/create_incidence_range.py +++ b/src/opera_utils/disp/create_incidence_range.py @@ -62,8 +62,8 @@ def create_incidence_angle_raster( # Set the units attribute as degrees dst.units = ["degrees"] dst.descriptions = [ - "Incidence angle between the line-of-sight (LOS) vector and the normal" - " to the ellipsoid at the target" + ("Incidence angle between the line-of-sight (LOS) vector and the normal" + " to the ellipsoid at the target") ] diff --git a/src/opera_utils/stitching.py b/src/opera_utils/stitching.py index 129974d..8f6bef9 100644 --- a/src/opera_utils/stitching.py +++ b/src/opera_utils/stitching.py @@ -139,7 +139,7 @@ def merge_images( out_bounds=out_bounds, out_bounds_epsg=out_bounds_epsg, ) - (xmin, ymin, xmax, ymax) = bounds + xmin, ymin, xmax, ymax = bounds proj_win = (xmin, ymax, xmax, ymin) # ul_lr = ulx, uly, lrx, lry # Write out the files for gdal_merge using the --optfile flag