File tree Expand file tree Collapse file tree 10 files changed +38
-38
lines changed
Filter options
Expand file tree Collapse file tree 10 files changed +38
-38
lines changed
Original file line number Diff line number Diff line change 106
106
}
107
107
108
108
# linkify_issues
109
- issue_url_tpl = f' { about [" __github__" ]} /issues/{{issue_id}}'
109
+ issue_url_tpl = f" { about [' __github__' ]} /issues/{{issue_id}}"
110
110
111
111
# sphinx.ext.autodoc
112
112
autoclass_content = "both"
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def __init__(
41
41
if all (arg is not None for arg in [obj_key , obj_id , list_cmd , list_extra_args ]):
42
42
return super ().__init__ (
43
43
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 '' } " ,
45
45
)
46
46
return super ().__init__ ("Could not find object" )
47
47
Original file line number Diff line number Diff line change @@ -604,7 +604,7 @@ def split(
604
604
if size is not None :
605
605
if has_lt_version ("3.1" ):
606
606
if isinstance (size , str ) and size .endswith ("%" ):
607
- tmux_args += (f' -p{ str (size ).rstrip ("%" ) } ' ,)
607
+ tmux_args += (f" -p{ str (size ).rstrip ('%' ) } " ,)
608
608
else :
609
609
warnings .warn (
610
610
'Ignored size. Use percent in tmux < 3.1, e.g. "size=50%"' ,
@@ -857,7 +857,7 @@ def split_window(
857
857
stacklevel = 2 ,
858
858
)
859
859
if size is None and percent is not None :
860
- size = f' { str (percent ).rstrip ("%" )} %'
860
+ size = f" { str (percent ).rstrip ('%' )} %"
861
861
return self .split (
862
862
target = target ,
863
863
attach = attach ,
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ def attach(
414
414
flags += ("-x" ,)
415
415
416
416
if flags_ is not None and isinstance (flags_ , list ):
417
- flags += tuple (f' { "," .join (flags_ )} ' )
417
+ flags += tuple (f" { ',' .join (flags_ )} " )
418
418
419
419
proc = self .cmd (
420
420
"attach-session" ,
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
47
47
assert has_minimum_version ()
48
48
assert has_gte_version (TMUX_MIN_VERSION )
49
49
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
+ )
53
53
54
54
55
55
def test_allows_next_version (monkeypatch : pytest .MonkeyPatch ) -> None :
@@ -85,9 +85,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
85
85
assert has_minimum_version ()
86
86
assert has_gte_version (TMUX_MIN_VERSION )
87
87
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
+ )
91
91
92
92
93
93
def test_get_version_too_low (monkeypatch : pytest .MonkeyPatch ) -> None :
Original file line number Diff line number Diff line change @@ -314,6 +314,6 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
314
314
environment = {"ENV_VAR" : "window" },
315
315
)
316
316
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
+ )
Original file line number Diff line number Diff line change @@ -439,6 +439,6 @@ def test_split_window_with_environment_logs_warning_for_old_tmux(
439
439
environment = {"ENV_VAR" : "pane" },
440
440
)
441
441
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
+ )
Original file line number Diff line number Diff line change @@ -47,9 +47,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
47
47
assert has_minimum_version ()
48
48
assert has_gte_version (TMUX_MIN_VERSION )
49
49
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
+ )
53
53
54
54
55
55
def test_allows_next_version (monkeypatch : pytest .MonkeyPatch ) -> None :
@@ -85,9 +85,9 @@ def mock_tmux_cmd(*args: t.Any, **kwargs: t.Any) -> Hi:
85
85
assert has_minimum_version ()
86
86
assert has_gte_version (TMUX_MIN_VERSION )
87
87
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
+ )
91
91
92
92
93
93
def test_get_version_too_low (monkeypatch : pytest .MonkeyPatch ) -> None :
Original file line number Diff line number Diff line change @@ -326,9 +326,9 @@ def test_new_window_with_environment_logs_warning_for_old_tmux(
326
326
environment = {"ENV_VAR" : "window" },
327
327
)
328
328
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
+ )
332
332
333
333
334
334
@pytest .mark .skipif (
@@ -378,6 +378,6 @@ def test_session_new_window_with_direction_logs_warning_for_old_tmux(
378
378
direction = WindowDirection .After ,
379
379
)
380
380
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
+ )
Original file line number Diff line number Diff line change @@ -461,9 +461,9 @@ def test_split_with_environment_logs_warning_for_old_tmux(
461
461
environment = {"ENV_VAR" : "pane" },
462
462
)
463
463
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
+ )
467
467
468
468
469
469
@pytest .mark .skipif (
@@ -596,10 +596,10 @@ def test_new_window_with_direction_logs_warning_for_old_tmux(
596
596
direction = WindowDirection .After ,
597
597
)
598
598
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
+ )
602
602
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
+ )
You can’t perform that action at this time.
0 commit comments