Skip to content

Commit 6340a06

Browse files
committed
chore(ruff) Automated fixes for typing annotations
Fixed 3 errors: - src/libvcs/_internal/run.py: 1 × COM812 (missing-trailing-comma) - src/libvcs/sync/git.py: 1 × COM812 (missing-trailing-comma) - tests/_internal/subprocess/test_SubprocessCommand.py: 1 × COM812 (missing-trailing-comma) Found 1052 errors (3 fixed, 1049 remaining). 3 files reformatted, 48 files left unchanged uv run ruff check --select ALL . --fix --unsafe-fixes --preview --show-fixes; uv run ruff format .
1 parent d6f5a7f commit 6340a06

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

src/libvcs/_internal/run.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ class CmdLoggingAdapter(_LoggerAdapter):
5959
"""
6060

6161
def __init__(
62-
self, bin_name: str, keyword: str, *args: t.Any, **kwargs: t.Any
62+
self,
63+
bin_name: str,
64+
keyword: str,
65+
*args: t.Any,
66+
**kwargs: t.Any,
6367
) -> None:
6468
#: bin_name
6569
self.bin_name = bin_name

src/libvcs/sync/git.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,10 @@ def obtain(self, *args: t.Any, **kwargs: t.Any) -> None:
379379
self.set_remotes(overwrite=True)
380380

381381
def update_repo(
382-
self, set_remotes: bool = False, *args: t.Any, **kwargs: t.Any
382+
self,
383+
set_remotes: bool = False,
384+
*args: t.Any,
385+
**kwargs: t.Any,
383386
) -> None:
384387
"""Pull latest changes from git remote."""
385388
self.ensure_dir()

tests/_internal/subprocess/test_SubprocessCommand.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def idfn(val: t.Any) -> str:
4040
ids=idfn,
4141
)
4242
def test_init(
43-
args: list[t.Any], kwargs: dict[str, t.Any], expected_result: t.Any
43+
args: list[t.Any],
44+
kwargs: dict[str, t.Any],
45+
expected_result: t.Any,
4446
) -> None:
4547
"""Test SubprocessCommand via list + kwargs, assert attributes."""
4648
cmd = SubprocessCommand(*args, **kwargs)

0 commit comments

Comments
 (0)