Skip to content

Commit 2472a95

Browse files
committed
style: Ruff autofix post-rebase
why: enforce project import/type alias style after rebase. what: - reflow long docstring line - apply sorted imports - switch InitCmdArgs to t.TypeAlias
1 parent b81336a commit 2472a95

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/libvcs/_internal/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def run(
157157
subprocess in real time instead of when the process finishes.
158158
159159
check_returncode : bool
160-
Indicate whether a ``libvcs.exc.CommandError`` should be raised if return code is
161-
different from 0.
160+
Indicate whether a ``libvcs.exc.CommandError`` should be raised if return
161+
code is different from 0.
162162
163163
callback : ProgressCallbackProtocol
164164
callback to return output as a command executes, accepts a function signature

src/libvcs/_internal/subprocess.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
from .dataclasses import SkipDefaultFieldsReprMixin
5353

54-
5554
F = t.TypeVar("F", bound=t.Callable[..., t.Any])
5655

5756

src/libvcs/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def unique_repo_name(remote_repos_path: pathlib.Path, max_retries: int = 15) ->
265265
return remote_repo_name
266266

267267

268-
InitCmdArgs: TypeAlias = list[str] | None
268+
InitCmdArgs: t.TypeAlias = list[str] | None
269269

270270

271271
class CreateRepoPostInitFn(t.Protocol):

src/libvcs/sync/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
from urllib import parse as urlparse
2626

2727
from libvcs import exc
28+
from libvcs._internal.types import StrPath
2829
from libvcs.cmd.git import Git
2930
from libvcs.sync.base import (
3031
BaseSync,
3132
VCSLocation,
3233
convert_pip_url as base_convert_pip_url,
3334
)
34-
from libvcs._internal.types import StrPath
3535

3636
logger = logging.getLogger(__name__)
3737

src/libvcs/url/registry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import typing as t
66

77
from libvcs._internal.module_loading import import_string
8+
89
from .base import URLProtocol
910

1011
ParserLazyMap: t.TypeAlias = dict[str, type[URLProtocol] | str]

0 commit comments

Comments
 (0)