From 6bc233f62a56cf318354d0fcb3adae0511ab80ef Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:16:24 +1100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#582) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.2...v0.7.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> --- .pre-commit-config.yaml | 2 +- src/datachain/client/fsspec.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24164eb27..5d26a4118 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: trailing-whitespace exclude: '^LICENSES/' - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.7.2' + rev: 'v0.7.3' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/datachain/client/fsspec.py b/src/datachain/client/fsspec.py index c553c3e5f..968458a8d 100644 --- a/src/datachain/client/fsspec.py +++ b/src/datachain/client/fsspec.py @@ -358,7 +358,7 @@ def open_object( ) -> BinaryIO: """Open a file, including files in tar archives.""" if use_cache and (cache_path := self.cache.get_path(file)): - return open(cache_path, mode="rb") # noqa: SIM115 + return open(cache_path, mode="rb") assert not file.location return FileWrapper(self.fs.open(self.get_full_path(file.path)), cb) # type: ignore[return-value]