From 80870872b258f1345bb6c38433b4ec653d292197 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 11:33:24 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.7.4](https://github.com/astral-sh/ruff-pre-commit/compare/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> --- .pre-commit-config.yaml | 2 +- src/scmrepo/git/lfs/storage.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6b6face0..67b570f0 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.7.2' + rev: 'v0.7.4' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/scmrepo/git/lfs/storage.py b/src/scmrepo/git/lfs/storage.py index 677ffbb1..a1cb1d1a 100644 --- a/src/scmrepo/git/lfs/storage.py +++ b/src/scmrepo/git/lfs/storage.py @@ -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 @@ -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