Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"]
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ctd/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_processing_real_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down