Skip to content

Commit 27f6bb1

Browse files
committed
sort imports
1 parent 52f6c1d commit 27f6bb1

File tree

7 files changed

+47
-18
lines changed

7 files changed

+47
-18
lines changed

doc/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
import os
44
import sys
5+
56
import alagitpull
67

8+
import libtmux # NOQA
9+
from libtmux import test # NOQA
10+
711
# Get the project root dir, which is the parent dir of this
812
cwd = os.getcwd()
913
project_root = os.path.dirname(cwd)
1014

1115
sys.path.insert(0, project_root)
1216

13-
from libtmux import test # NOQA
14-
import libtmux # NOQA
1517

1618
# package data
1719
about = {}

libtmux/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@
1010
1111
"""
1212

13-
from .__about__ import __title__, __package_name__, __version__, \
14-
__description__, __email__, __author__, __license__, __copyright__
15-
13+
from .__about__ import (
14+
__author__,
15+
__copyright__,
16+
__description__,
17+
__email__,
18+
__license__,
19+
__package_name__,
20+
__title__,
21+
__version__,
22+
)
1623
from .pane import Pane
1724
from .server import Server
1825
from .session import Session

libtmux/server.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111
import os
1212

1313
from . import exc, formats
14-
from .common import EnvironmentMixin, TmuxRelationalObject, tmux_cmd, \
15-
session_check_name, has_gte_version
14+
from .common import (
15+
EnvironmentMixin,
16+
TmuxRelationalObject,
17+
has_gte_version,
18+
session_check_name,
19+
tmux_cmd,
20+
)
1621
from .session import Session
1722

1823
logger = logging.getLogger(__name__)

libtmux/session.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@
1212

1313
from . import exc, formats
1414
from ._compat import text_type
15-
from .common import EnvironmentMixin, has_version, TmuxMappingObject, \
16-
TmuxRelationalObject, session_check_name, handle_option_error
15+
from .common import (
16+
EnvironmentMixin,
17+
TmuxMappingObject,
18+
TmuxRelationalObject,
19+
handle_option_error,
20+
has_version,
21+
session_check_name,
22+
)
1723
from .window import Window
1824

1925
logger = logging.getLogger(__name__)

libtmux/window.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
from . import exc, formats
1515
from .common import (
16-
TmuxMappingObject, TmuxRelationalObject, handle_option_error
16+
TmuxMappingObject,
17+
TmuxRelationalObject,
18+
handle_option_error,
1719
)
1820
from .pane import Pane
1921

tests/test_common.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,26 @@
33

44
import re
55
import sys
6+
from distutils.version import LooseVersion
67

78
import pytest
89

9-
from distutils.version import LooseVersion
10-
1110
import libtmux
12-
1311
from libtmux.common import (
14-
has_minimum_version, which, session_check_name, tmux_cmd,
15-
has_version, has_gt_version, has_lt_version, get_version,
16-
has_gte_version, has_lte_version, TMUX_MAX_VERSION, TMUX_MIN_VERSION
12+
TMUX_MAX_VERSION,
13+
TMUX_MIN_VERSION,
14+
get_version,
15+
has_gt_version,
16+
has_gte_version,
17+
has_lt_version,
18+
has_lte_version,
19+
has_minimum_version,
20+
has_version,
21+
session_check_name,
22+
tmux_cmd,
23+
which,
1724
)
18-
from libtmux.exc import LibTmuxException, BadSessionName, TmuxCommandNotFound
25+
from libtmux.exc import BadSessionName, LibTmuxException, TmuxCommandNotFound
1926

2027
version_regex = re.compile(r'([0-9]\.[0-9])|(master)')
2128

tests/test_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from __future__ import absolute_import, unicode_literals, with_statement
44

55
import logging
6+
67
import pytest
78

89
from libtmux import Pane, Server, Window, exc
910
from libtmux.common import has_gte_version
1011

11-
1212
logger = logging.getLogger(__name__)
1313

1414

0 commit comments

Comments
 (0)