diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a6addbb..e774b6d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: python-use-type-annotations - id: text-unicode-replacement-char - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.1 + rev: v0.4.2 hooks: - id: ruff - id: ruff-format @@ -60,7 +60,7 @@ repos: hooks: - id: codespell - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.9.0' + rev: 'v1.10.0' hooks: - id: mypy args: [ diff --git a/src/pytask_parallel/backends.py b/src/pytask_parallel/backends.py index e64489a..efa77cf 100644 --- a/src/pytask_parallel/backends.py +++ b/src/pytask_parallel/backends.py @@ -134,7 +134,7 @@ def get_parallel_backend(self, kind: ParallelBackend, n_workers: int) -> Executo except KeyError: msg = f"No registered parallel backend found for kind {kind.value!r}." raise ValueError(msg) from None - except Exception as e: # noqa: BLE001 + except Exception as e: msg = f"Could not instantiate parallel backend {kind.value!r}." raise ValueError(msg) from e diff --git a/src/pytask_parallel/utils.py b/src/pytask_parallel/utils.py index 6cb044c..a551cc8 100644 --- a/src/pytask_parallel/utils.py +++ b/src/pytask_parallel/utils.py @@ -104,7 +104,7 @@ def _safe_load( try: return node.load(is_product=is_product) - except Exception as e: # noqa: BLE001 + except Exception as e: msg = f"Exception while loading node {node.name!r} of task {task.name!r}" raise NodeLoadError(msg) from e