Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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']
Expand All @@ -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: [
Expand All @@ -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: [
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
6 changes: 3 additions & 3 deletions src/pytask_parallel/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)


Expand Down Expand Up @@ -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]

Expand Down