Skip to content

Commit 8087087

Browse files
[pre-commit.ci] pre-commit autoupdate (#389)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.4](astral-sh/ruff-pre-commit@v0.7.2...v0.7.4) * [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>
1 parent 93861d0 commit 8087087

File tree

2 files changed

+3
-3
lines changed

2 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.7.4'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

src/scmrepo/git/lfs/storage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def open(
4747
oid = obj if isinstance(obj, str) else obj.oid
4848
path = self.oid_to_path(oid)
4949
try:
50-
return open(path, **kwargs) # noqa: SIM115
50+
return open(path, **kwargs)
5151
except FileNotFoundError:
5252
if not fetch_url or not isinstance(obj, Pointer):
5353
raise
@@ -57,7 +57,7 @@ def open(
5757
raise FileNotFoundError(
5858
errno.ENOENT, os.strerror(errno.ENOENT), path
5959
) from exc
60-
return open(path, **kwargs) # noqa: SIM115
60+
return open(path, **kwargs)
6161

6262
def close(self):
6363
pass

0 commit comments

Comments
 (0)