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 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 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]