Skip to content

Commit 4e52900

Browse files
authoredMay 7, 2024··
[pre-commit.ci] pre-commit autoupdate (#350)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/astral-sh/ruff-pre-commit: v0.3.5 → v0.4.3](astral-sh/ruff-pre-commit@v0.3.5...v0.4.3) * [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 bd11bec commit 4e52900

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ default_language_version:
22
python: python3
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.5.0
5+
rev: v4.6.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-case-conflict
@@ -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.3.5'
23+
rev: 'v0.4.3'
2424
hooks:
2525
- id: ruff
2626
args: [--fix, --exit-non-zero-on-fix]

‎src/scmrepo/git/backend/dulwich/__init__.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def clone(
264264
cls._set_mirror(repo, progress=progress)
265265
else:
266266
cls._set_default_tracking_branch(repo)
267-
except Exception as exc: # noqa: BLE001
267+
except Exception as exc:
268268
raise CloneError(url, os.fsdecode(to_path)) from exc
269269

270270
@staticmethod
@@ -580,7 +580,7 @@ def iter_remote_refs(self, url: str, base: Optional[str] = None, **kwargs):
580580
try:
581581
_remote, location = get_remote_repo(self.repo, url)
582582
client, path = get_transport_and_path(location, **kwargs)
583-
except Exception as exc: # noqa: BLE001
583+
except Exception as exc:
584584
raise InvalidRemote(url) from exc
585585

586586
try:
@@ -617,7 +617,7 @@ def push_refspecs( # noqa: C901
617617
try:
618618
_remote, location = get_remote_repo(self.repo, url)
619619
client, path = get_transport_and_path(location, **kwargs)
620-
except Exception as exc: # noqa: BLE001
620+
except Exception as exc:
621621
raise SCMError(f"'{url}' is not a valid Git remote or URL") from exc
622622

623623
change_result = {}
@@ -910,7 +910,7 @@ def validate_git_remote(self, url: str, **kwargs):
910910
try:
911911
_, location = get_remote_repo(self.repo, url)
912912
client, path = get_transport_and_path(location, **kwargs)
913-
except Exception as exc: # noqa: BLE001
913+
except Exception as exc:
914914
raise InvalidRemote(url) from exc
915915
if isinstance(client, LocalGitClient) and not os.path.exists(
916916
os.path.join("", path)
@@ -989,5 +989,5 @@ def ls_remote(url: str) -> dict[str, str]:
989989
return {os.fsdecode(ref): sha.decode("ascii") for ref, sha in refs.items()}
990990
except HTTPUnauthorized as exc:
991991
raise AuthError(url) from exc
992-
except Exception as exc: # noqa: BLE001
992+
except Exception as exc:
993993
raise InvalidRemote(url) from exc

‎src/scmrepo/git/lfs/storage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def open(
5353
raise
5454
try:
5555
self.fetch(fetch_url, [obj], batch_size=batch_size)
56-
except BaseException as exc: # noqa: BLE001
56+
except BaseException as exc:
5757
raise FileNotFoundError(
5858
errno.ENOENT, os.strerror(errno.ENOENT), path
5959
) from exc

‎src/scmrepo/git/stash.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def pop(self, **kwargs):
5353
rev = self.scm.resolve_rev(ref)
5454
try:
5555
self.apply(rev, **kwargs)
56-
except Exception as exc: # noqa: BLE001
56+
except Exception as exc:
5757
raise SCMError("Could not apply stash commit") from exc
5858
self.drop()
5959
return rev

0 commit comments

Comments
 (0)
Please sign in to comment.