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 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()