Skip to content

Commit 67ee365

Browse files
committed
cli(utils) Preserve print for more areas
1 parent 48ccd1c commit 67ee365

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/tmuxp/cli/load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _reattach(builder: WorkspaceBuilder) -> None:
115115
plugin.reattach(builder.session)
116116
proc = builder.session.cmd("display-message", "-p", "'#S'")
117117
for line in proc.stdout:
118-
print(line)
118+
print(line) # NOQA: PT014 RUF100
119119

120120
if "TMUX" in os.environ:
121121
builder.session.switch_client()

src/tmuxp/cli/ls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ def command_ls(
2525
stem, ext = os.path.splitext(f)
2626
if os.path.isdir(f) or ext not in VALID_WORKSPACE_DIR_FILE_EXTENSIONS:
2727
continue
28-
print(stem)
28+
print(stem) # NOQA: T201 RUF100

src/tmuxp/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def oh_my_zsh_auto_title() -> None:
7575
or os.environ.get("DISABLE_AUTO_TITLE") == "false"
7676
)
7777
):
78-
print(
78+
print( # NOQA: T201 RUF100
7979
"Please set:\n\n"
8080
"\texport DISABLE_AUTO_TITLE='true'\n\n"
8181
"in ~/.zshrc or where your zsh profile is stored.\n"
@@ -155,7 +155,7 @@ def get_pane(window: "Window", current_pane: t.Optional["Pane"] = None) -> "Pane
155155
else:
156156
pane = window.active_pane
157157
except exc.TmuxpException as e:
158-
print(e)
158+
print(e) # NOQA: T201 RUF100
159159

160160
if pane is None:
161161
if current_pane:

0 commit comments

Comments
 (0)