diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 1ae0446a..2e26b9d4 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -47,6 +47,10 @@ jobs: platform: windows-latest backend: pyside6 + - python-version: "3.12" + platform: macos-latest + backend: pyqt6 + # legacy Qt - python-version: 3.8 platform: ubuntu-latest diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cc8b6e78..eff6ece8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,12 +12,12 @@ repos: - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.0.292 hooks: - id: ruff args: ["--fix"] diff --git a/pyproject.toml b/pyproject.toml index 36c8f9f6..a18b558a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,7 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Desktop Environment", "Topic :: Software Development :: User Interfaces", "Topic :: Software Development :: Widget Sets", diff --git a/src/superqt/utils/_ensure_thread.py b/src/superqt/utils/_ensure_thread.py index ab699a0a..80a6a4cd 100644 --- a/src/superqt/utils/_ensure_thread.py +++ b/src/superqt/utils/_ensure_thread.py @@ -187,5 +187,5 @@ def _run_in_thread( f = CallCallable(func, args, kwargs) f.moveToThread(thread) f.finished.connect(future.set_result, Qt.ConnectionType.DirectConnection) - QMetaObject.invokeMethod(f, "call", Qt.ConnectionType.QueuedConnection) # type: ignore # noqa + QMetaObject.invokeMethod(f, "call", Qt.ConnectionType.QueuedConnection) # type: ignore return future.result(timeout=timeout / 1000) if await_return else future