Skip to content

Commit 56af66a

Browse files
[pre-commit.ci] pre-commit autoupdate (#654)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent f76c1bd commit 56af66a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repos:
2020
- id: sort-simple-yaml
2121
- id: trailing-whitespace
2222
- repo: https://github.com/astral-sh/ruff-pre-commit
23-
rev: 'v0.14.10'
23+
rev: 'v0.15.2'
2424
hooks:
2525
- id: ruff-check
2626
args: [--fix, --exit-non-zero-on-fix]

src/dvc_data/hashfile/db/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def check(
172172

173173
assert actual.name == self.hash_name
174174
assert actual.value
175-
if actual.value.split(".")[0] != oid.split(".")[0]:
175+
if actual.value.split(".")[0] != oid.split(".", maxsplit=1)[0]:
176176
logger.debug("corrupted cache file '%s'.", obj.path)
177177
with suppress(FileNotFoundError):
178178
self.fs.remove(obj.path)

src/dvc_data/index/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ def _load_from_storage(trie, entry, storage_info):
768768
else:
769769
_load_from_file_storage(trie, entry, storage)
770770
return True
771-
except Exception as exc: # noqa: BLE001
771+
except Exception as exc:
772772
# NOTE: this might be some random fs exception, e.g. auth error
773773
last_exc = exc
774774
logger.debug(

0 commit comments

Comments
 (0)