Skip to content

Commit

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

updates:
- [github.com/crate-ci/typos: v1.19.0 → v1.20.1](crate-ci/typos@v1.19.0...v1.20.1)
- [github.com/astral-sh/ruff-pre-commit: v0.3.0 → v0.3.5](astral-sh/ruff-pre-commit@v0.3.0...v0.3.5)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.0)

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

* fix

* fix numpy

* change mamba installer

* use macos-13 for pyside2

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Talley Lambert <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and tlambert03 authored Apr 30, 2024
1 parent c4c83b2 commit b0c2952
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v3
with:
installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
installer-url: https://github.com/conda-forge/miniforge/releases/download/24.1.2-0/Mambaforge-24.1.2-0-Linux-x86_64.sh
- name: install
run: |
pip install -U wheel asv
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ jobs:
os: [macos-latest, windows-latest]
qt: [PyQt5, PyQt6, PySide2, PySide6]
compile: [true, false]
exclude:
- os: macos-latest
qt: PySide2
include:
- os: macos-13
qt: PySide2

test-magicgui:
uses: pyapp-kit/workflows/.github/workflows/test-dependents.yml@v1
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ exclude: .asv

repos:
- repo: https://github.com/crate-ci/typos
rev: v1.19.0
rev: v1.20.10
hooks:
- id: typos

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.4.2
hooks:
- id: ruff
args: [--fix, --unsafe-fixes]
Expand All @@ -24,7 +24,7 @@ repos:
- id: validate-pyproject

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.0
hooks:
- id: mypy
exclude: tests|_throttler.pyi
Expand Down
2 changes: 1 addition & 1 deletion src/psygnal/_weak_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def dereference(self) -> MethodType | partial | None:
func = self._func_ref()
if obj is None or func is None:
return None
method = func.__get__(obj)
method = cast(MethodType, func.__get__(obj))
if self._args or self._kwargs:
return partial(method, *self._args, **self._kwargs)
return method
Expand Down

0 comments on commit b0c2952

Please sign in to comment.