Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#389)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Nov 25, 2024
1 parent 93861d0 commit 8087087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.7.2'
rev: 'v0.7.4'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
4 changes: 2 additions & 2 deletions src/scmrepo/git/lfs/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def open(
oid = obj if isinstance(obj, str) else obj.oid
path = self.oid_to_path(oid)
try:
return open(path, **kwargs) # noqa: SIM115
return open(path, **kwargs)
except FileNotFoundError:
if not fetch_url or not isinstance(obj, Pointer):
raise
Expand All @@ -57,7 +57,7 @@ def open(
raise FileNotFoundError(
errno.ENOENT, os.strerror(errno.ENOENT), path
) from exc
return open(path, **kwargs) # noqa: SIM115
return open(path, **kwargs)

def close(self):
pass
Expand Down

0 comments on commit 8087087

Please sign in to comment.