From ead6fbeac150c4364308c1ffd7c580efa7f258a7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:30:43 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.3) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d2a1c7..ead0243 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.8.6 + rev: v0.9.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] From 6e1452c61cdc8f217c546b6b3d70ec9a298eb6ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2025 16:31:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pybiocfilecache/cache.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pybiocfilecache/cache.py b/src/pybiocfilecache/cache.py index 6436f55..d8ee3ef 100644 --- a/src/pybiocfilecache/cache.py +++ b/src/pybiocfilecache/cache.py @@ -217,9 +217,7 @@ def get(self, rname: str = None, rid: str = None) -> Optional[Resource]: timeout = 30 while not Path(str(resource.rpath)).exists(): if time() - start >= timeout: - raise TimeoutError( - f"For resource: '{rname}' the rpath does not exist " f"after {timeout} seconds." - ) + raise TimeoutError(f"For resource: '{rname}' the rpath does not exist after {timeout} seconds.") sleep(0.1) # Update access time