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