diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d251309fb8..4df32d4d291 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # Ruff mne - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.14 + rev: v0.15.0 hooks: - id: ruff-check name: ruff lint mne diff --git a/mne/io/hitachi/hitachi.py b/mne/io/hitachi/hitachi.py index 9d8e27ba20d..69912a11ea1 100644 --- a/mne/io/hitachi/hitachi.py +++ b/mne/io/hitachi/hitachi.py @@ -122,10 +122,12 @@ def _read_segment_file(self, data, idx, fi, start, stop, cals, mult): this_probe["keep_mask"], this_probe["bounds"], sep=",", - replace=lambda x: x.replace("\r", "\n") - .replace("\n\n", "\n") - .replace("\n", ",") - .replace(":", ""), + replace=lambda x: ( + x.replace("\r", "\n") + .replace("\n\n", "\n") + .replace("\n", ",") + .replace(":", "") + ), ).T ) this_data = np.concatenate(this_data, axis=0)