From 0e426287be25701e63c9bd1f98bb74316fb5b3ba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 16:33:47 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.4 → v0.16.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.4...v0.16.10) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v2.4.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v2.4.0) - [github.com/mgedmin/check-manifest: 0.50 → 0.51](https://github.com/mgedmin/check-manifest/compare/0.50...0.51) - [github.com/codespell-project/codespell: v2.4.1 → v2.4.3](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.3) --- .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 72d4cbf..d9ed175 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,20 +18,20 @@ repos: - id: requirements-txt-fixer - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.4 + rev: v0.16.10 hooks: - id: ruff args: [ --config=pyproject.toml ] - id: ruff-format args: [ --config=pyproject.toml ] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v2.4.0 hooks: - id: mypy additional_dependencies: - types-setuptools - repo: https://github.com/mgedmin/check-manifest - rev: "0.50" + rev: "0.51" hooks: - id: check-manifest args: [--no-build-isolation] @@ -41,7 +41,7 @@ repos: - setuptools-scm[toml]>=8 - repo: https://github.com/codespell-project/codespell # Configuration for codespell is in pyproject.toml - rev: v2.4.1 + rev: v2.4.3 hooks: - id: codespell additional_dependencies: From 9a703ac6b90393bc43268914758937cac8417945 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2026 16:35:56 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../pages/examples/multi-session-consistent-amplitudes.md | 2 +- docs/source/pages/how-to-use-driftplots.md | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/docs/source/pages/examples/multi-session-consistent-amplitudes.md b/docs/source/pages/examples/multi-session-consistent-amplitudes.md index d08edd5..a3b2d57 100644 --- a/docs/source/pages/examples/multi-session-consistent-amplitudes.md +++ b/docs/source/pages/examples/multi-session-consistent-amplitudes.md @@ -52,7 +52,7 @@ for idx, path_or_analyzer in enumerate([analyzer, sorting_output_path]): filter_amplitude_mode="absolute", filter_amplitude_values=(min_cutoff, max_cutoff), title=f"Session {idx + 1}", - ax=axes[idx] + ax=axes[idx], ) plt.show() diff --git a/docs/source/pages/how-to-use-driftplots.md b/docs/source/pages/how-to-use-driftplots.md index 66d40a7..cada032 100644 --- a/docs/source/pages/how-to-use-driftplots.md +++ b/docs/source/pages/how-to-use-driftplots.md @@ -59,7 +59,6 @@ driftmap = plotter.drift_map_plot_interactive( ) driftmap.plot() - ``` The displayed templates are whitened and are not scaled per spike, i.e. the template will @@ -98,8 +97,7 @@ sorting_output_path = data_path / "sorting" / "sorter_output" # into a single plot using MultiSessionDriftmapWidget panels = [] for title, path_or_analyzer in zip( - ["Session 1", "Session 2"], - [analyzer, sorting_output_path] + ["Session 1", "Session 2"], [analyzer, sorting_output_path] ): plotter = DriftPlotter(path_or_analyzer) @@ -139,7 +137,6 @@ fig = plotter.drift_map_plot_matplotlib( ) plt.show() - ``` See [this example](/pages/examples/creating-pdf) for how to stitch Matplotlib figures together across