diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e945887..6d438f7 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.11 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.1" hooks: - id: mypy additional_dependencies: 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