Skip to content

Commit ddae08e

Browse files
committed
ruff: format with ruff 0.3.0
1 parent 6023816 commit ddae08e

35 files changed

+37
-4
lines changed

conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
See "pytest_plugins in non-top-level conftest files" in
88
https://docs.pytest.org/en/stable/deprecations.html
99
"""
10+
1011
import pathlib
1112
import shutil
1213
import typing as t

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# flake8: NOQA: E501
22
"""Sphinx configuration for libtmux."""
3+
34
import contextlib
45
import inspect
56
import pathlib

src/libtmux/__about__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Metadata package for libtmux."""
2+
23
__title__ = "libtmux"
34
__package_name__ = "libtmux"
45
__version__ = "0.31.0post0"

src/libtmux/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""libtmux, a typed, pythonic API wrapper for the tmux terminal multiplexer."""
2+
23
from .__about__ import (
34
__author__,
45
__copyright__,

src/libtmux/_internal/dataclasses.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
----
55
This is an internal API not covered by versioning policy.
66
"""
7+
78
import dataclasses
89
import typing as t
910
from operator import attrgetter

src/libtmux/_internal/query_list.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
----
55
This is an internal API not covered by versioning policy.
66
"""
7+
78
import re
89
import traceback
910
import typing as t

src/libtmux/common.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~~~~
55
66
"""
7+
78
import logging
89
import re
910
import shutil

src/libtmux/constants.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Constant variables for libtmux."""
2+
23
import enum
34
import typing as t
45

src/libtmux/exc.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~
55
66
"""
7+
78
import typing as t
89

910
from libtmux._internal.query_list import ObjectDoesNotExist

src/libtmux/formats.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
For reference: https://github.com/tmux/tmux/blob/master/format.c
77
88
"""
9+
910
import os
1011

1112
FORMAT_SEPARATOR = os.environ.get("LIBTMUX_TMUX_FORMAT_SEPARATOR", "␞")

src/libtmux/neo.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tools for hydrating tmux data into python dataclass objects."""
2+
23
import dataclasses
34
import logging
45
import typing as t

src/libtmux/pane.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~~
55
66
"""
7+
78
import dataclasses
89
import logging
910
import typing as t
@@ -336,12 +337,10 @@ def display_message(
336337
self,
337338
cmd: str,
338339
get_text: "t.Literal[True]",
339-
) -> t.Union[str, t.List[str]]:
340-
...
340+
) -> t.Union[str, t.List[str]]: ...
341341

342342
@overload
343-
def display_message(self, cmd: str, get_text: "t.Literal[False]") -> None:
344-
...
343+
def display_message(self, cmd: str, get_text: "t.Literal[False]") -> None: ...
345344

346345
def display_message(
347346
self,

src/libtmux/pytest_plugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""libtmux pytest plugin."""
2+
23
import contextlib
34
import getpass
45
import logging

src/libtmux/server.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~~~~
55
66
"""
7+
78
import logging
89
import os
910
import pathlib

src/libtmux/session.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~~~~~
55
66
"""
7+
78
import dataclasses
89
import logging
910
import pathlib

src/libtmux/test.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Helper methods for libtmux and downstream libtmux libraries."""
2+
23
import contextlib
34
import logging
45
import os

src/libtmux/window.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
~~~~~~~~~~~~~~
55
66
"""
7+
78
import dataclasses
89
import logging
910
import pathlib

tests/legacy_api/test_common.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for utility functions in libtmux."""
2+
23
import re
34
import sys
45
import typing as t

tests/legacy_api/test_pane.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux Pane object."""
2+
23
import logging
34
import shutil
45

tests/legacy_api/test_server.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Server object."""
2+
23
import logging
34
import subprocess
45

tests/legacy_api/test_session.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Session object."""
2+
23
import logging
34
import shutil
45
import typing as t

tests/legacy_api/test_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux's testing utilities."""
2+
23
from time import time
34

45
import pytest

tests/legacy_api/test_tmuxobject.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux TmuxRelationalObject and TmuxMappingObject."""
2+
23
import logging
34

45
from libtmux.pane import Pane

tests/legacy_api/test_version.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for version comparison."""
2+
23
import operator
34
import typing as t
45
from contextlib import nullcontext as does_not_raise

tests/legacy_api/test_window.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Window object."""
2+
23
import logging
34
import shutil
45
import time

tests/test_common.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for utility functions in libtmux."""
2+
23
import re
34
import sys
45
import typing as t

tests/test_dataclasses.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux object model, querying and traversal, etc."""
2+
23
import pathlib
34
import typing as t
45

tests/test_pane.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux Pane object."""
2+
23
import logging
34
import shutil
45

tests/test_pytest_plugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux pytest plugin."""
2+
23
import textwrap
34

45
import pytest

tests/test_server.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Server object."""
2+
23
import logging
34
import subprocess
45

tests/test_session.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Session object."""
2+
23
import logging
34
import shutil
45
import typing as t

tests/test_test.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux's testing utilities."""
2+
23
from time import time
34

45
import pytest

tests/test_tmuxobject.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for libtmux TmuxRelationalObject and TmuxMappingObject."""
2+
23
import logging
34

45
from libtmux.pane import Pane

tests/test_version.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Tests for version comparison."""
2+
23
import operator
34
import typing as t
45
from contextlib import nullcontext as does_not_raise

tests/test_window.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for libtmux Window object."""
2+
23
import logging
34
import shutil
45
import time

0 commit comments

Comments
 (0)