diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9143cb1..9730e63 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=25'] @@ -23,16 +23,16 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.4 + rev: v0.14.10 hooks: - id: ruff - id: ruff-format - repo: https://github.com/kynan/nbstripout - rev: 0.8.1 + rev: 0.8.2 hooks: - id: nbstripout - repo: https://github.com/executablebooks/mdformat - rev: 0.7.22 + rev: 1.0.0 hooks: - id: mdformat additional_dependencies: [ @@ -43,7 +43,7 @@ repos: args: [--wrap, "88"] files: (docs/.) - repo: https://github.com/executablebooks/mdformat - rev: 0.7.22 + rev: 1.0.0 hooks: - id: mdformat additional_dependencies: [ diff --git a/docs/source/conf.py b/docs/source/conf.py index 7c4f503..cae9f45 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -144,7 +144,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> str | None: # noqa: linespec = f"#L{lineno}-L{lineno + len(source) - 1}" if lineno else "" - fn = os.path.relpath(fn, start=Path(pytask_parallel.__file__).parent) + fn = os.path.relpath(fn, start=Path(pytask_parallel.__file__).parent) # ty: ignore[invalid-argument-type] if "+" in pytask_parallel.__version__: return f"https://github.com/pytask-dev/pytask-parallel/blob/main/src/pytask_parallel/{fn}{linespec}" diff --git a/src/pytask_parallel/wrappers.py b/src/pytask_parallel/wrappers.py index ad00e10..7cb28f8 100644 --- a/src/pytask_parallel/wrappers.py +++ b/src/pytask_parallel/wrappers.py @@ -168,8 +168,8 @@ def wrap_task_in_process( # noqa: PLR0913 def rewrap_task_with_coiled_function(task: PTask) -> CoiledFunction: - return functools.wraps(wrap_task_in_process)( - CoiledFunction(wrap_task_in_process, **task.attributes["coiled_kwargs"]) + return functools.wraps(wrap_task_in_process)( # ty: ignore[invalid-return-type] + CoiledFunction(wrap_task_in_process, **task.attributes["coiled_kwargs"]) # ty: ignore[invalid-argument-type] ) @@ -203,7 +203,7 @@ def _render_traceback_to_string( ) -> tuple[type[BaseException], BaseException, str]: """Process the exception and convert the traceback to a string.""" traceback = Traceback(exc_info, show_locals=show_locals) - segments = console.render(traceback, options=console_options) + segments = console.render(traceback, options=console_options) # ty: ignore[invalid-argument-type] text = "".join(segment.text for segment in segments) return (*exc_info[:2], text) # ty: ignore[invalid-return-type]