diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8f63beb6..f8eb61cc5 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.6.2 + rev: v0.6.3 hooks: - id: ruff args: ["--fix"] diff --git a/mne_nirs/visualisation/_plot_nirs_source_detector.py b/mne_nirs/visualisation/_plot_nirs_source_detector.py index bd983d4ab..a00f24a72 100644 --- a/mne_nirs/visualisation/_plot_nirs_source_detector.py +++ b/mne_nirs/visualisation/_plot_nirs_source_detector.py @@ -162,7 +162,7 @@ def plot_nirs_source_detector( vmax = np.max(np.abs(data)) cmap = "RdBu_r" - if isinstance(radius, (int, float)): + if isinstance(radius, int | float): radius = np.ones(len(info["chs"])) * radius # Plot requested alignment