Skip to content

Commit 01d7eca

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 01d7eca

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/libtmux/common.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -411,11 +411,9 @@ 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 "
415+
+ f"system has {get_version()} installed. Upgrade your tmux to use "
416+
+ "libtmux."
419417
)
420418
raise exc.VersionTooLow(msg)
421419
else:

src/libtmux/window.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -762,12 +762,9 @@ 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,
765+
return (
766+
f"{self.__class__.__name__}({self.window_id} "
767+
+ f"{self.window_index}:{self.window_name}, {self.session})"
771768
)
772769

773770
#

0 commit comments

Comments
 (0)