Skip to content

Commit 5125b25

Browse files
[pre-commit.ci] pre-commit autoupdate (#315)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 43b6451 commit 5125b25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
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.7.2'
23+
rev: 'v0.9.1'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

src/dvc_objects/fs/local.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def copy(self, path1, path2, recursive=False, on_error=None, **kwargs):
128128
raise
129129

130130
def open(self, path, mode="r", encoding=None, **kwargs):
131-
return open(path, mode=mode, encoding=encoding) # noqa: SIM115
131+
return open(path, mode=mode, encoding=encoding)
132132

133133
def symlink(self, path1, path2):
134134
return self.fs.symlink(path1, path2)

src/dvc_objects/obj.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class Object:
8-
__slots__ = ("path", "fs", "oid")
8+
__slots__ = ("fs", "oid", "path")
99

1010
def __init__(
1111
self,

0 commit comments

Comments
 (0)