Skip to content

Commit f38ddb8

Browse files
committed
style: ruff format
1 parent c0e3238 commit f38ddb8

2 files changed

Lines changed: 5 additions & 15 deletions

File tree

src/uxon/cli.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,7 @@ def is_new_project_target_allowed(cfg: Config, launch_user: str, project_dir: st
13911391
return is_under_allowed_roots(cfg, project_dir)
13921392

13931393

1394-
def ensure_new_project_target_allowed(
1395-
cfg: Config, launch_user: str, project_dir: str
1396-
) -> None:
1394+
def ensure_new_project_target_allowed(cfg: Config, launch_user: str, project_dir: str) -> None:
13971395
"""Raise variant of :func:`is_new_project_target_allowed`.
13981396
13991397
Splits the failure reasons so the user sees whether the parent is
@@ -2214,9 +2212,7 @@ def do_doctor(cfg: Config, caller_user: str, launch_user: str, cwd: str) -> int:
22142212
launch_user,
22152213
)
22162214
else:
2217-
availability[aid] = uxon_agents.AgentAvailability(
2218-
status="missing", error="not on PATH"
2219-
)
2215+
availability[aid] = uxon_agents.AgentAvailability(status="missing", error="not on PATH")
22202216
current_sessions = collect_sessions([launch_user], cfg)
22212217
legacy_sessions = collect_sessions_for_user(
22222218
launch_user,

tests/test_uxon.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -774,19 +774,13 @@ def test_doctor_reports_missing_agent(self) -> None:
774774
with mock.patch.object(uxon, "tmux_socket_path", return_value="/tmp/uxon-u-vz.sock"):
775775
with mock.patch("uxon.probes.probe_host", return_value=host_report):
776776
with mock.patch.object(uxon, "collect_sessions", return_value=[]):
777-
with mock.patch.object(
778-
uxon, "collect_sessions_for_user", return_value=[]
779-
):
780-
with mock.patch.object(
781-
uxon, "user_can_write_dir", return_value=True
782-
):
777+
with mock.patch.object(uxon, "collect_sessions_for_user", return_value=[]):
778+
with mock.patch.object(uxon, "user_can_write_dir", return_value=True):
783779
with mock.patch.object(
784780
uxon, "format_version", return_value="uxon 0.4.0"
785781
):
786782
with mock.patch("sys.stdout", output):
787-
rc = uxon.do_doctor(
788-
cfg, "u-vz", "u-vz", "/srv/repos/demo"
789-
)
783+
rc = uxon.do_doctor(cfg, "u-vz", "u-vz", "/srv/repos/demo")
790784

791785
rendered = output.getvalue()
792786
self.assertEqual(rc, 0)

0 commit comments

Comments
 (0)