Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc41d3f

Browse filesBrowse files
committed
1 parent 92451f8 commit dc41d3f
Copy full SHA for dc41d3f

File tree

Expand file treeCollapse file tree

10 files changed

+38
-38
lines changed
Filter options
Expand file treeCollapse file tree

10 files changed

+38
-38
lines changed

‎docs/conf.py

Copy file name to clipboardExpand all lines: docs/conf.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
}
107107

108108
# linkify_issues
109-
issue_url_tpl = f'{about["__github__"]}/issues/{{issue_id}}'
109+
issue_url_tpl = f"{about['__github__']}/issues/{{issue_id}}"
110110

111111
# sphinx.ext.autodoc
112112
autoclass_content = "both"

‎src/libtmux/exc.py

Copy file name to clipboardExpand all lines: src/libtmux/exc.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
if all(arg is not None for arg in [obj_key, obj_id, list_cmd, list_extra_args]):
4242
return super().__init__(
4343
f"Could not find {obj_key}={obj_id} for {list_cmd} "
44-
f'{list_extra_args if list_extra_args is not None else ""}',
44+
f"{list_extra_args if list_extra_args is not None else ''}",
4545
)
4646
return super().__init__("Could not find object")
4747

‎src/libtmux/pane.py

Copy file name to clipboardExpand all lines: src/libtmux/pane.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ def split(
604604
if size is not None:
605605
if has_lt_version("3.1"):
606606
if isinstance(size, str) and size.endswith("%"):
607-
tmux_args += (f'-p{str(size).rstrip("%")}',)
607+
tmux_args += (f"-p{str(size).rstrip('%')}",)
608608
else:
609609
warnings.warn(
610610
'Ignored size. Use percent in tmux < 3.1, e.g. "size=50%"',
@@ -857,7 +857,7 @@ def split_window(
857857
stacklevel=2,
858858
)
859859
if size is None and percent is not None:
860-
size = f'{str(percent).rstrip("%")}%'
860+
size = f"{str(percent).rstrip('%')}%"
861861
return self.split(
862862
target=target,
863863
attach=attach,

‎src/libtmux/session.py

Copy file name to clipboardExpand all lines: src/libtmux/session.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def attach(
414414
flags += ("-x",)
415415

416416
if flags_ is not None and isinstance(flags_, list):
417-
flags += tuple(f'{",".join(flags_)}')
417+
flags += tuple(f"{','.join(flags_)}")
418418

419419
proc = self.cmd(
420420
"attach-session",

‎tests/legacy_api/test_common.py

Copy file name to clipboardExpand all lines: tests/legacy_api/test_common.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
4747
assert has_minimum_version()
4848
assert has_gte_version(TMUX_MIN_VERSION)
4949
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
50-
assert (
51-
get_version() == f"{TMUX_MAX_VERSION}-master"
52-
), "Is the latest supported version with -master appended"
50+
assert get_version() == f"{TMUX_MAX_VERSION}-master", (
51+
"Is the latest supported version with -master appended"
52+
)
5353

5454

5555
def test_allows_next_version(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -85,9 +85,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
8585
assert has_minimum_version()
8686
assert has_gte_version(TMUX_MIN_VERSION)
8787
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
88-
assert (
89-
get_version() == f"{TMUX_MAX_VERSION}-openbsd"
90-
), "Is the latest supported version with -openbsd appended"
88+
assert get_version() == f"{TMUX_MAX_VERSION}-openbsd", (
89+
"Is the latest supported version with -openbsd appended"
90+
)
9191

9292

9393
def test_get_version_too_low(monkeypatch: pytest.MonkeyPatch) -> None:

‎tests/legacy_api/test_session.py

Copy file name to clipboardExpand all lines: tests/legacy_api/test_session.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,6 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
314314
environment={"ENV_VAR": "window"},
315315
)
316316

317-
assert any(
318-
"Environment flag ignored" in record.msg for record in caplog.records
319-
), "Warning missing"
317+
assert any("Environment flag ignored" in record.msg for record in caplog.records), (
318+
"Warning missing"
319+
)

‎tests/legacy_api/test_window.py

Copy file name to clipboardExpand all lines: tests/legacy_api/test_window.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,6 @@ def test_split_window_with_environment_logs_warning_for_old_tmux(
439439
environment={"ENV_VAR": "pane"},
440440
)
441441

442-
assert any(
443-
"Environment flag ignored" in record.msg for record in caplog.records
444-
), "Warning missing"
442+
assert any("Environment flag ignored" in record.msg for record in caplog.records), (
443+
"Warning missing"
444+
)

‎tests/test_common.py

Copy file name to clipboardExpand all lines: tests/test_common.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
4747
assert has_minimum_version()
4848
assert has_gte_version(TMUX_MIN_VERSION)
4949
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
50-
assert (
51-
get_version() == f"{TMUX_MAX_VERSION}-master"
52-
), "Is the latest supported version with -master appended"
50+
assert get_version() == f"{TMUX_MAX_VERSION}-master", (
51+
"Is the latest supported version with -master appended"
52+
)
5353

5454

5555
def test_allows_next_version(monkeypatch: pytest.MonkeyPatch) -> None:
@@ -85,9 +85,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
8585
assert has_minimum_version()
8686
assert has_gte_version(TMUX_MIN_VERSION)
8787
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
88-
assert (
89-
get_version() == f"{TMUX_MAX_VERSION}-openbsd"
90-
), "Is the latest supported version with -openbsd appended"
88+
assert get_version() == f"{TMUX_MAX_VERSION}-openbsd", (
89+
"Is the latest supported version with -openbsd appended"
90+
)
9191

9292

9393
def test_get_version_too_low(monkeypatch: pytest.MonkeyPatch) -> None:

‎tests/test_session.py

Copy file name to clipboardExpand all lines: tests/test_session.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
326326
environment={"ENV_VAR": "window"},
327327
)
328328

329-
assert any(
330-
"Environment flag ignored" in record.msg for record in caplog.records
331-
), "Warning missing"
329+
assert any("Environment flag ignored" in record.msg for record in caplog.records), (
330+
"Warning missing"
331+
)
332332

333333

334334
@pytest.mark.skipif(
@@ -378,6 +378,6 @@ def test_session_new_window_with_direction_logs_warning_for_old_tmux(
378378
direction=WindowDirection.After,
379379
)
380380

381-
assert any(
382-
"Direction flag ignored" in record.msg for record in caplog.records
383-
), "Warning missing"
381+
assert any("Direction flag ignored" in record.msg for record in caplog.records), (
382+
"Warning missing"
383+
)

‎tests/test_window.py

Copy file name to clipboardExpand all lines: tests/test_window.py
+9-9Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ def test_split_with_environment_logs_warning_for_old_tmux(
461461
environment={"ENV_VAR": "pane"},
462462
)
463463

464-
assert any(
465-
"Environment flag ignored" in record.msg for record in caplog.records
466-
), "Warning missing"
464+
assert any("Environment flag ignored" in record.msg for record in caplog.records), (
465+
"Warning missing"
466+
)
467467

468468

469469
@pytest.mark.skipif(
@@ -596,10 +596,10 @@ def test_new_window_with_direction_logs_warning_for_old_tmux(
596596
direction=WindowDirection.After,
597597
)
598598

599-
assert any(
600-
"Window target ignored" in record.msg for record in caplog.records
601-
), "Warning missing"
599+
assert any("Window target ignored" in record.msg for record in caplog.records), (
600+
"Warning missing"
601+
)
602602

603-
assert any(
604-
"Direction flag ignored" in record.msg for record in caplog.records
605-
), "Warning missing"
603+
assert any("Direction flag ignored" in record.msg for record in caplog.records), (
604+
"Warning missing"
605+
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.