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]