Skip to content

Commit 487ef41

Browse files
committed
chore(ruff) ruff v0.12 aggressive fixes
uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format . Fixed 4 errors: - src/libvcs/sync/git.py: 3 × ISC003 (explicit-string-concatenation) - tests/test_exc.py: 1 × RUF100 (unused-noqa)
1 parent 13f3722 commit 487ef41

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/libvcs/sync/git.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ class GitRemoteRefNotFound(exc.CommandError):
7373

7474
def __init__(self, git_tag: str, ref_output: str, *args: object) -> None:
7575
return super().__init__(
76-
f"Could not fetch remote in refs/remotes/{git_tag}:"
77-
+ f"Output: {ref_output}",
76+
f"Could not fetch remote in refs/remotes/{git_tag}:Output: {ref_output}",
7877
)
7978

8079

@@ -529,8 +528,8 @@ def update_repo(
529528
self.cmd.stash.pop(index=True, quiet=True)
530529
self.log.exception(
531530
f"\nFailed to rebase in: '{self.path}'.\n"
532-
+ "You will have to resolve the "
533-
+ "conflicts manually",
531+
"You will have to resolve the "
532+
"conflicts manually",
534533
)
535534
return
536535

tests/test_exc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# ruff: noqa: TRY003
21
"""tests for libvcs exceptions."""
32

43
from __future__ import annotations

0 commit comments

Comments
 (0)