diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d2ef08..d6c0404 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.11.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] 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", ]