From b9fe0a364c7edaa45bec5ed303042ca37c9983e5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:34:46 +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.14.10 → v0.15.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.14.10...v0.15.0) --- .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 32861d1d..a1fb4d1d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: - id: sort-simple-yaml - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.14.10' + rev: 'v0.15.0' hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix] From 7c4024e8fefde3928f4614ccd15ecba692c7acdf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Feb 2026 23:35:03 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/dvc_data/hashfile/db/__init__.py | 2 +- src/dvc_data/index/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dvc_data/hashfile/db/__init__.py b/src/dvc_data/hashfile/db/__init__.py index 861dfbf9..cb333d58 100644 --- a/src/dvc_data/hashfile/db/__init__.py +++ b/src/dvc_data/hashfile/db/__init__.py @@ -172,7 +172,7 @@ def check( assert actual.name == self.hash_name assert actual.value - if actual.value.split(".")[0] != oid.split(".")[0]: + if actual.value.split(".")[0] != oid.split(".", maxsplit=1)[0]: logger.debug("corrupted cache file '%s'.", obj.path) with suppress(FileNotFoundError): self.fs.remove(obj.path) diff --git a/src/dvc_data/index/index.py b/src/dvc_data/index/index.py index 01c55f42..c9223ae9 100644 --- a/src/dvc_data/index/index.py +++ b/src/dvc_data/index/index.py @@ -768,7 +768,7 @@ def _load_from_storage(trie, entry, storage_info): else: _load_from_file_storage(trie, entry, storage) return True - except Exception as exc: # noqa: BLE001 + except Exception as exc: # NOTE: this might be some random fs exception, e.g. auth error last_exc = exc logger.debug(