Skip to content

Commit 8e9d5c3

Browse files
committed
chore(ruff 0.3.20): ruff check . --unsafe-fixes --fix; ruff format .
src/libtmux/common.py:414:89: E501 Line too long (89 > 88) src/libtmux/window.py:765:89: E501 Line too long (116 > 88) Found 4 errors (2 fixed, 2 remaining).
1 parent 8f55b48 commit 8e9d5c3

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/libtmux/common.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,8 @@ def has_minimum_version(raises: bool = True) -> bool:
411411
if get_version() < LooseVersion(TMUX_MIN_VERSION):
412412
if raises:
413413
msg = (
414-
"libtmux only supports tmux {} and greater. This system"
415-
" has {} installed. Upgrade your tmux to use libtmux.".format(
416-
TMUX_MIN_VERSION,
417-
get_version(),
418-
)
414+
f"libtmux only supports tmux {TMUX_MIN_VERSION} and greater. This system"
415+
f" has {get_version()} installed. Upgrade your tmux to use libtmux."
419416
)
420417
raise exc.VersionTooLow(msg)
421418
else:

src/libtmux/window.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -762,13 +762,7 @@ def __eq__(self, other: object) -> bool:
762762

763763
def __repr__(self) -> str:
764764
"""Representation of :class:`Window` object."""
765-
return "{}({} {}:{}, {})".format(
766-
self.__class__.__name__,
767-
self.window_id,
768-
self.window_index,
769-
self.window_name,
770-
self.session,
771-
)
765+
return f"{self.__class__.__name__}({self.window_id} {self.window_index}:{self.window_name}, {self.session})"
772766

773767
#
774768
# Aliases

0 commit comments

Comments
 (0)