Skip to content
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/napari/napari_parameter_sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down Expand Up @@ -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},
Expand Down
4 changes: 2 additions & 2 deletions docs/gallery_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Loading