Skip to content

Commit d02b43a

Browse files
committed
fix(E501) Break long strings in logger.warning calls
Fixes two E501 (line-too-long) errors by breaking string literals across multiple lines using implicit string concatenation: - docs/_ext/aafig.py:134 - src/tmuxp/workspace/builder.py:421 All checks now pass: ✅ ruff check: All checks passed! ✅ mypy: Success ✅ pytest: 204 passed, 3 skipped
1 parent ba4ad04 commit d02b43a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/_ext/aafig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ def render_aafig_images(app: Sphinx, doctree: nodes.Node) -> None:
131131
options["format"] = format_map[format_]
132132
else:
133133
logger.warning(
134-
'unsupported builder format "%s", please add a custom entry in aafig_format config option for this builder',
134+
(
135+
'unsupported builder format "%s", please add a custom entry in '
136+
"aafig_format config option for this builder"
137+
),
135138
format_,
136139
)
137140
img.replace_self(nodes.literal_block(text, text))

src/tmuxp/workspace/builder.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,10 @@ def iter_create_windows(
418418
else:
419419
target = "windows"
420420
logger.warning(
421-
"Cannot set environment for new %s. You need tmux 3.0 or newer for this.",
421+
(
422+
"Cannot set environment for new %s. "
423+
"You need tmux 3.0 or newer for this."
424+
),
422425
target,
423426
)
424427
environment = None

0 commit comments

Comments
 (0)