From 999f3ea49970329e0df421490bd945e5582f1325 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Tue, 7 Oct 2025 08:53:18 -0300 Subject: [PATCH 1/2] update --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7df65c7..3b84a94 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: files: requirements-dev.txt - repo: https://github.com/keewis/blackdoc - rev: v0.4.1 + rev: v0.4.3 hooks: - id: blackdoc @@ -39,7 +39,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.11 + rev: v0.13.3 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -62,12 +62,12 @@ repos: - id: nb-strip-paths - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.6.0 + rev: v2.7.0 hooks: - id: pyproject-fmt - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.12.1 + rev: v1.14.2 hooks: - id: zizmor From 7ab3685f2c870d486d80f2941d060617c13bda04 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Tue, 7 Oct 2025 08:54:02 -0300 Subject: [PATCH 2/2] lints --- ctd/read.py | 2 +- tests/test_processing_real_data.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctd/read.py b/ctd/read.py index 7d29a66..0e834a7 100644 --- a/ctd/read.py +++ b/ctd/read.py @@ -369,7 +369,7 @@ def from_edf(fname: str | Path) -> pd.DataFrame: # noqa: C901, PLR0912 else: header.append(line) if line.startswith("Field"): - col, unit = (ln.strip().casefold() for ln in line.split(":")) + _, unit = (ln.strip().casefold() for ln in line.split(":")) names.append(unit.split()[0]) if line == "// Data": skiprows = k + 1 diff --git a/tests/test_processing_real_data.py b/tests/test_processing_real_data.py index 6930f75..db11abf 100644 --- a/tests/test_processing_real_data.py +++ b/tests/test_processing_real_data.py @@ -54,7 +54,7 @@ def test_press_check_real_data(spiked_ctd): def test_processing_chain_spiked_ctd(spiked_ctd): """Test all processing steps chained.""" - down, up = spiked_ctd.remove_above_water().split() + down, _ = spiked_ctd.remove_above_water().split() temp = down["t090C"] # despike is a series only method temp = ( temp.despike()