Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: "26.5.1"
rev: "26.10.1"
hooks:
- id: black
args: [--preview, --enable-unstable-feature, string_processing]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.17.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v2.1.0"
rev: "v2.4.1"
hooks:
- id: mypy
additional_dependencies:
Expand Down
1 change: 0 additions & 1 deletion src/dolphin/io/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"copy_projection",
"format_nc_filename",
"get_raster_bounds",
"get_raster_bounds",
"get_raster_chunk_size",
"get_raster_crs",
"get_raster_description",
Expand Down
4 changes: 2 additions & 2 deletions src/dolphin/stitching.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

import logging
import math
import os
import re
import subprocess
import tempfile
from collections.abc import Mapping
from datetime import datetime
from os import fspath
from os.path import commonpath
from pathlib import Path
from typing import Iterable, Optional, Sequence

Expand Down Expand Up @@ -730,7 +730,7 @@ def _common_prefix_before_first_date(files: Sequence[Path], file_date_fmt: str)
candidates.append(stem[: m.start()] if m else stem)
if not candidates:
return ""
prefix = os.path.commonprefix(candidates)
prefix = commonpath(candidates)
# tidy trailing separators; preserve '_' if it already exists
prefix = re.sub(r"[-.\s]+$", "", prefix)
return prefix
Loading