Skip to content

Commit b31cd3c

Browse files
[pre-commit.ci] pre-commit autoupdate (#30)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.3](astral-sh/ruff-pre-commit@v0.8.6...v0.9.3) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent bbac2dd commit b31cd3c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ repos:
3333

3434
- repo: https://github.com/astral-sh/ruff-pre-commit
3535
# Ruff version.
36-
rev: v0.8.6
36+
rev: v0.9.3
3737
hooks:
3838
- id: ruff
3939
args: [--fix, --exit-non-zero-on-fix]

src/pybiocfilecache/cache.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ def get(self, rname: str = None, rid: str = None) -> Optional[Resource]:
217217
timeout = 30
218218
while not Path(str(resource.rpath)).exists():
219219
if time() - start >= timeout:
220-
raise TimeoutError(
221-
f"For resource: '{rname}' the rpath does not exist " f"after {timeout} seconds."
222-
)
220+
raise TimeoutError(f"For resource: '{rname}' the rpath does not exist after {timeout} seconds.")
223221
sleep(0.1)
224222

225223
# Update access time

0 commit comments

Comments
 (0)