diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 17908d9..ceee0ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,12 +26,12 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.14.14 hooks: - id: ruff-check - id: ruff-format - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.0 hooks: - id: nbstripout - repo: https://github.com/executablebooks/mdformat @@ -56,7 +56,7 @@ repos: args: [--wrap, "88"] files: (README\.md) - repo: https://github.com/crate-ci/typos - rev: v1.40.1 + rev: v1 hooks: - id: typos - repo: meta diff --git a/pyproject.toml b/pyproject.toml index 8520904..d010638 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ docs = [ "matplotlib", "myst-parser", "nbsphinx", - "sphinx", + "sphinx<9", "sphinx-autobuild", "sphinx-click", "sphinx-copybutton", diff --git a/src/pytask_parallel/wrappers.py b/src/pytask_parallel/wrappers.py index e663e8a..e26deba 100644 --- a/src/pytask_parallel/wrappers.py +++ b/src/pytask_parallel/wrappers.py @@ -217,7 +217,7 @@ def _render_traceback_to_string( traceback = Traceback(exc_info, show_locals=show_locals) segments = console.render(cast("Any", traceback), options=console_options) text = "".join(segment.text for segment in segments) - return (*exc_info[:2], text) # ty: ignore[invalid-return-type] + return (*exc_info[:2], text) def _handle_function_products(