Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ 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: 24.10.0
hooks:
- id: black

Expand All @@ -19,18 +19,18 @@ repos:
- 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.8.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2 changes: 1 addition & 1 deletion mpl_interactions/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions mpl_interactions/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
# functions that are methods
__all__ = [
"heatmap_slicer",
"zoom_factory",
"panhandler",
"image_segmenter",
"hyperslicer",
"image_segmenter",
"panhandler",
"zoom_factory",
]


Expand Down
22 changes: 11 additions & 11 deletions mpl_interactions/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]


Expand Down
10 changes: 5 additions & 5 deletions mpl_interactions/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]


Expand Down
4 changes: 2 additions & 2 deletions mpl_interactions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

__all__ = [
"figure",
"nearest_idx",
"ioff",
"indexer",
"ioff",
"nearest_idx",
]


Expand Down
Loading