diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2830eefb3..c6b136e7d 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.3 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.18.2 hooks: - id: mypy files: "^src/" diff --git a/docs/examples/napari/napari_parameter_sweep.py b/docs/examples/napari/napari_parameter_sweep.py index d55991b97..05e16c19b 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 73712b424..026379eca 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()