From 07482f341dd1debbe627ae8762f6f367b27857f7 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 23 Jan 2026 14:15:43 -0300 Subject: [PATCH 1/3] update --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e058f9c..77f0578 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.14.14 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -67,7 +67,7 @@ repos: - id: pyproject-fmt - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.19.0 + rev: v1.22.0 hooks: - id: zizmor From 1a4e33f05aff8083b952247f130702db50fdaa6e Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 23 Jan 2026 14:16:00 -0300 Subject: [PATCH 2/3] fix for pandas 3.0 --- ctd/read.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ctd/read.py b/ctd/read.py index 0e834a7..9b1d47b 100644 --- a/ctd/read.py +++ b/ctd/read.py @@ -549,7 +549,7 @@ def rosette_summary(fname: str | Path) -> pd.DataFrame: ros["pressure"] = ros.index.to_numpy().astype(float) ros["nbf"] = ros["nbf"].astype(int) metadata = ros._metadata # noqa: SLF001 - ros = ros.set_index("nbf", drop=True, verify_integrity=False) + ros = ros.set_index("nbf", drop=True) ros._metadata = metadata # noqa: SLF001 return ros @@ -564,7 +564,7 @@ def from_castaway_csv(fname: str | Path) -> pd.DataFrame: >>> cast.columns Index(['depth', 'temperature', 'conductivity', 'specific_conductance', 'salinity', 'sound_velocity', 'density'], - dtype='object') + dtype='str') """ f = _read_file(fname) @@ -588,7 +588,7 @@ def from_castaway_csv(fname: str | Path) -> pd.DataFrame: _normalize_names(s.split("(")[0]).lower().replace(" ", "_") for s in cast.columns ] - cast = cast.set_index("pressure", drop=True, verify_integrity=False) + cast = cast.set_index("pressure", drop=True) # Add metadata meta = [s.replace("%", "").strip().split(",") for s in meta] From ea40b5fc0848c4c56c926a9d7948cb93b7fcf53c Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 23 Jan 2026 14:17:36 -0300 Subject: [PATCH 3/3] add py314 --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0fff7ee..ac9f3bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: [ "3.11", "3.12", "3.13" ] + python-version: [ "3.11", "3.12", "3.13", "3.14" ] os: [ windows-latest, ubuntu-latest, macos-latest ] fail-fast: false