From 505fb826318bfbced4c9669aba9d08efd09e248f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 22:15:49 +0000 Subject: [PATCH 1/2] ci(pre-commit.ci): autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/crate-ci/typos: v1.33.1 → v1](https://github.com/crate-ci/typos/compare/v1.33.1...v1) - [github.com/astral-sh/ruff-pre-commit: v0.11.12 → v0.14.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.12...v0.14.7) - [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.19.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2830eefb..9ed2a9fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,19 +10,19 @@ repos: - id: validate-pyproject - repo: https://github.com/crate-ci/typos - rev: v1.33.1 + rev: v1 hooks: - id: typos - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.12 + rev: v0.14.7 hooks: - id: ruff-check args: ["--fix", "--unsafe-fixes"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.19.0 hooks: - id: mypy files: "^src/" From 159d1b3d2f2d593d16919ee84160b6d09e5b5f7d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 22:17:31 +0000 Subject: [PATCH 2/2] style(pre-commit.ci): auto fixes [...] --- docs/examples/napari/napari_parameter_sweep.py | 4 ++-- docs/gallery_conf.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/examples/napari/napari_parameter_sweep.py b/docs/examples/napari/napari_parameter_sweep.py index d55991b9..05e16c19 100644 --- a/docs/examples/napari/napari_parameter_sweep.py +++ b/docs/examples/napari/napari_parameter_sweep.py @@ -48,7 +48,7 @@ # - 'auto_call' tells magicgui to call the function when a parameter changes # - we use 'widget_type' to override the default "float" widget on sigma, # and provide a maximum valid value. -# - we contstrain the possible choices for 'mode' +# - we constrain the possible choices for 'mode' @magicgui( auto_call=True, sigma={"widget_type": "FloatSlider", "max": 6}, @@ -173,7 +173,7 @@ def do_something_with_result(result): ... # - 'auto_call' tells magicgui to call the function when a parameter changes # - we use 'widget_type' to override the default "float" widget on sigma, # and provide a maximum valid value. -# - we contstrain the possible choices for 'mode' +# - we constrain the possible choices for 'mode' @magicgui( auto_call=True, sigma={"widget_type": "FloatSlider", "max": 6}, diff --git a/docs/gallery_conf.py b/docs/gallery_conf.py index 73712b42..026379ec 100644 --- a/docs/gallery_conf.py +++ b/docs/gallery_conf.py @@ -25,7 +25,7 @@ def qt_window_scraper(block: tuple, script: GalleryScript) -> str: Returns ------- md : str - The ReSTructuredText that will be rendered to HTML containing + The ReSStructuredText that will be rendered to HTML containing the images. This is often produced by :func:`figure_md_or_html`. """ imgpath_iter = script.run_vars.image_path_iterator @@ -61,7 +61,7 @@ def napari_image_scraper(block, script: GalleryScript): Returns ------- md : str - The ReSTructuredText that will be rendered to HTML containing + The ReSStructuredText that will be rendered to HTML containing the images. This is often produced by :func:`figure_md_or_html`. """ viewer = napari.current_viewer()