From 967722d1b86e767c00810dabb6e94ca199875590 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:52:11 +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/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/psf/black: 24.8.0 → 25.1.0](https://github.com/psf/black/compare/24.8.0...25.1.0) - [github.com/pycqa/isort: 5.13.2 → 6.0.1](https://github.com/pycqa/isort/compare/5.13.2...6.0.1) - [github.com/nbQA-dev/nbQA: 1.8.7 → 1.9.1](https://github.com/nbQA-dev/nbQA/compare/1.8.7...1.9.1) - [github.com/kynan/nbstripout: 0.7.1 → 0.8.1](https://github.com/kynan/nbstripout/compare/0.7.1...0.8.1) - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.12.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.6.4...v0.12.2) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d2ef08..773e1c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,35 +2,35 @@ ci: autoupdate_schedule: "quarterly" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-docstring-first - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/pycqa/isort - rev: 5.13.2 + rev: 6.0.1 hooks: - id: isort - repo: https://github.com/nbQA-dev/nbQA - rev: 1.8.7 + rev: 1.9.1 hooks: - id: nbqa-black - id: nbqa-isort - repo: https://github.com/kynan/nbstripout - rev: 0.7.1 + rev: 0.8.1 hooks: - id: nbstripout - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.4 + rev: v0.12.2 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 62c7c4c45ea89dfe54b03d84e867c706b4741dd6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 17:52:35 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mpl_interactions/controller.py | 2 +- mpl_interactions/generic.py | 6 +++--- mpl_interactions/helpers.py | 22 +++++++++++----------- mpl_interactions/pyplot.py | 10 +++++----- mpl_interactions/utils.py | 4 ++-- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/mpl_interactions/controller.py b/mpl_interactions/controller.py index 87f9d7e..d3f31e5 100644 --- a/mpl_interactions/controller.py +++ b/mpl_interactions/controller.py @@ -350,7 +350,7 @@ def _ipython_display_(self): def __getitem__(self, key): """ - hack to allow calls like + Hack to allow calls like interactive_plot(...beta=(0,1), controls = controls["tau"]) also allows [None] to grab None of the current params to imply that we only want tau from the existing set of commands. diff --git a/mpl_interactions/generic.py b/mpl_interactions/generic.py index 3968e15..8b8f821 100644 --- a/mpl_interactions/generic.py +++ b/mpl_interactions/generic.py @@ -25,10 +25,10 @@ # functions that are methods __all__ = [ "heatmap_slicer", - "zoom_factory", - "panhandler", - "image_segmenter", "hyperslicer", + "image_segmenter", + "panhandler", + "zoom_factory", ] diff --git a/mpl_interactions/helpers.py b/mpl_interactions/helpers.py index 162d712..781a951 100644 --- a/mpl_interactions/helpers.py +++ b/mpl_interactions/helpers.py @@ -14,22 +14,22 @@ from matplotlib.pyplot import sca as mpl_sca __all__ = [ - "sca", - "decompose_bbox", - "update_datalim_from_xy", - "update_datalim_from_bbox", - "notebook_backend", "callable_else_value", "callable_else_value_no_cast", - "kwarg_to_ipywidget", - "kwarg_to_mpl_widget", - "extract_num_options", "changeify", - "create_slider_format_dict", - "gogogo_figure", + "choose_fmt_str", "create_mpl_controls_fig", + "create_slider_format_dict", + "decompose_bbox", "eval_xy", - "choose_fmt_str", + "extract_num_options", + "gogogo_figure", + "kwarg_to_ipywidget", + "kwarg_to_mpl_widget", + "notebook_backend", + "sca", + "update_datalim_from_bbox", + "update_datalim_from_xy", ] diff --git a/mpl_interactions/pyplot.py b/mpl_interactions/pyplot.py index 17a9d23..6fcf1ce 100644 --- a/mpl_interactions/pyplot.py +++ b/mpl_interactions/pyplot.py @@ -35,16 +35,16 @@ ) __all__ = [ - "interactive_plot", - "interactive_hist", - "interactive_scatter", - "interactive_imshow", "interactive_axhline", "interactive_axvline", + "interactive_hist", + "interactive_imshow", + "interactive_plot", + "interactive_scatter", + "interactive_text", "interactive_title", "interactive_xlabel", "interactive_ylabel", - "interactive_text", ] diff --git a/mpl_interactions/utils.py b/mpl_interactions/utils.py index e1ba8cc..b9173ee 100644 --- a/mpl_interactions/utils.py +++ b/mpl_interactions/utils.py @@ -13,9 +13,9 @@ __all__ = [ "figure", - "nearest_idx", - "ioff", "indexer", + "ioff", + "nearest_idx", ]