Skip to content

Commit 6ba8584

Browse files
committed
chore: Run ruff format .
1 parent f72d355 commit 6ba8584

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/tmuxp/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def launch(
272272
shell: t.Optional["CLIShellLiteral"] = "best",
273273
use_pythonrc: bool = False,
274274
use_vi_mode: bool = False,
275-
**kwargs: "Unpack[LaunchOptionalImports]"
275+
**kwargs: "Unpack[LaunchOptionalImports]",
276276
) -> None:
277277
# Also allowing passing shell='code' to force using code.interact
278278
imported_objects = get_launch_args(**kwargs)

tests/workspace/test_builder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,14 @@ def f() -> bool:
321321
return retry_until(f, raises=False)
322322

323323
for i, pane in enumerate(session.attached_window.panes):
324-
assert assert_last_line(
325-
pane, str(i)
326-
), "Initial command did not execute properly/" + str(i)
324+
assert assert_last_line(pane, str(i)), (
325+
"Initial command did not execute properly/" + str(i)
326+
)
327327
pane.cmd("send-keys", "Up") # Will repeat echo
328328
pane.enter() # in each iteration
329-
assert assert_last_line(
330-
pane, str(i)
331-
), "Repeated command did not execute properly/" + str(i)
329+
assert assert_last_line(pane, str(i)), (
330+
"Repeated command did not execute properly/" + str(i)
331+
)
332332

333333
session.cmd("send-keys", " echo moo")
334334
session.cmd("send-keys", "Enter")

tests/workspace/test_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,7 @@ def test_replaces_env_variables(monkeypatch: pytest.MonkeyPatch) -> None:
317317
panes:
318318
- shell_command:
319319
- htop
320-
""".format(
321-
TEST_VAR="${%s}" % env_key
322-
)
320+
""".format(TEST_VAR="${%s}" % env_key)
323321

324322
sconfig = ConfigReader._load(format="yaml", content=yaml_workspace)
325323

0 commit comments

Comments
 (0)