Skip to content

Commit

Permalink
ci(pre-commit.ci): autoupdate (#589)
Browse files Browse the repository at this point in the history
* ci(pre-commit.ci): autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.0.287 → v0.0.292](astral-sh/ruff-pre-commit@v0.0.287...v0.0.292)
- [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1)
- [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](codespell-project/codespell@v2.2.5...v2.2.6)

* style(pre-commit.ci): auto fixes [...]

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 4, 2023
1 parent e47338a commit 723d9c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ repos:


- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.287
rev: v0.0.292
hooks:
- id: ruff
args: ["--fix"]

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black

Expand All @@ -42,7 +42,7 @@ repos:
# manual hooks

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
exclude: CHANGELOG.md
Expand Down
2 changes: 1 addition & 1 deletion src/magicgui/backends/_qtpy/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _rescale(self) -> None:
)

def _mgui_set_value(self, val: np.ndarray) -> None:
image = QImage(val, val.shape[1], val.shape[0], QImage.Format.Format_RGBA8888) # type: ignore # noqa: E501
image = QImage(val, val.shape[1], val.shape[0], QImage.Format.Format_RGBA8888) # type: ignore
self._pixmap = QPixmap.fromImage(image)
self._rescale()

Expand Down
2 changes: 1 addition & 1 deletion src/magicgui/widgets/bases/_categorical_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def choices(self) -> tuple[T | None, ...]:

@choices.setter
def choices(self, choices: ChoicesType) -> None:
str_func: Callable = _get_name if isinstance(choices, EnumMeta) else str # type: ignore # noqa: E501
str_func: Callable = _get_name if isinstance(choices, EnumMeta) else str # type: ignore
if isinstance(choices, dict):
if "choices" not in choices or "key" not in choices:
raise ValueError(
Expand Down

0 comments on commit 723d9c0

Please sign in to comment.