[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d8793b66cf
commit
98fe6d32ac
2 changed files with 6 additions and 4 deletions
|
|
@ -1201,7 +1201,6 @@ def _require_studio(
|
|||
|
||||
def _studio_auth_root() -> Path:
|
||||
from unsloth_cli.commands.studio import STUDIO_HOME
|
||||
|
||||
return STUDIO_HOME / "auth"
|
||||
|
||||
|
||||
|
|
@ -2391,7 +2390,6 @@ def _managed_node_tools() -> Optional[tuple[Path, Path, bool]]:
|
|||
try:
|
||||
ensure_studio_backend_path()
|
||||
from utils.node_runtime import managed_node_binary, resolve_node_executable
|
||||
|
||||
node = Path(managed_node_binary())
|
||||
except (ImportError, OSError, RuntimeError, TypeError, ValueError):
|
||||
return None
|
||||
|
|
|
|||
|
|
@ -181,7 +181,9 @@ def test_install_agent_windows_failure_hints_execution_policy(monkeypatch, capsy
|
|||
_simulate_windows(monkeypatch)
|
||||
monkeypatch.setattr(start.sys, "stdin", SimpleNamespace(isatty = lambda: True))
|
||||
monkeypatch.setattr(start.typer, "confirm", lambda *a, **k: True)
|
||||
monkeypatch.setattr(start, "_npm_executable", lambda: r"C:\Users\me\AppData\Roaming\npm\npm.cmd")
|
||||
monkeypatch.setattr(
|
||||
start, "_npm_executable", lambda: r"C:\Users\me\AppData\Roaming\npm\npm.cmd"
|
||||
)
|
||||
monkeypatch.setattr(
|
||||
start.subprocess,
|
||||
"run",
|
||||
|
|
@ -1223,7 +1225,9 @@ def test_missing_pi_subagent_extension_fails_before_install_or_connect(monkeypat
|
|||
monkeypatch.setattr(
|
||||
start,
|
||||
"_connect",
|
||||
lambda *args, **kwargs: pytest.fail("local prerequisites must be checked before connection"),
|
||||
lambda *args, **kwargs: pytest.fail(
|
||||
"local prerequisites must be checked before connection"
|
||||
),
|
||||
)
|
||||
|
||||
result = CliRunner().invoke(start.start_app, ["pi", "--as-subagent"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue