Skip to content

Commit d8984ae

Browse files
author
deathaxe
committed
Sort imports
1 parent 73ccb32 commit d8984ae

13 files changed

+36
-31
lines changed

tests/test_3141596.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import os
22
import re
33
import shutil
4+
import sublime
5+
46
from functools import wraps
57
from unittest import skipIf
6-
from unittesting.utils import isiterable
8+
from unittesting import AWAIT_WORKER
79
from unittesting import DeferrableTestCase
810
from unittesting.helpers import TempDirectoryTestCase
911
from unittesting.helpers import ViewTestCase
10-
from unittesting import AWAIT_WORKER
11-
import sublime
12+
from unittesting.utils import isiterable
1213

1314
BASEDIR = os.path.dirname(os.path.abspath(__file__))
1415

unittesting/__init__.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1+
# API
12
from .core import DeferrableTestCase, AWAIT_WORKER, expectedFailure
23
from .scheduler import run_scheduler
3-
from .package import UnitTestingCommand
4+
5+
# commands
6+
from .color_scheme import UnitTestingColorSchemeCommand
47
from .coverage import UnitTestingCoverageCommand
58
from .current import UnitTestingCurrentFileCommand
69
from .current import UnitTestingCurrentFileCoverageCommand
710
from .current import UnitTestingCurrentPackageCommand
811
from .current import UnitTestingCurrentPackageCoverageCommand
12+
from .package import UnitTestingCommand
913
from .syntax import UnitTestingSyntaxCommand
1014
from .syntax import UnitTestingSyntaxCompatibilityCommand
11-
from .color_scheme import UnitTestingColorSchemeCommand
1215

1316

1417
__all__ = [
18+
"AWAIT_WORKER",
1519
"DeferrableTestCase",
20+
"expectedFailure",
1621
"run_scheduler",
1722
"UnitTestingCommand",
1823
"UnitTestingCoverageCommand",
@@ -23,6 +28,4 @@
2328
"UnitTestingSyntaxCommand",
2429
"UnitTestingSyntaxCompatibilityCommand",
2530
"UnitTestingColorSchemeCommand",
26-
"AWAIT_WORKER",
27-
"expectedFailure"
2831
]

unittesting/coverage.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import sublime
21
import os
3-
import sys
42
import re
5-
from .package import UnitTestingCommand
3+
import sublime
4+
import sys
65

6+
from .package import UnitTestingCommand
77

88
try:
99
import coverage # noqa

unittesting/current.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from fnmatch import fnmatch
21
import os
3-
42
import sublime
53

4+
from fnmatch import fnmatch
5+
66
from .package import UnitTestingCommand
77
from .coverage import UnitTestingCoverageCommand
88

unittesting/helpers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1+
from .override_preferences_test_cast import OverridePreferencesTestCase # noqa: F401
12
from .temp_directory_test_case import TempDirectoryTestCase # noqa: F401
23
from .view_test_case import ViewTestCase # noqa: F401
3-
from .override_preferences_test_cast import OverridePreferencesTestCase # noqa: F401

unittesting/helpers/override_preferences_test_cast.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
import sublime
2-
31
import os
42
import json
53
import shutil
4+
import sublime
65

76
from .. import DeferrableTestCase
87

unittesting/helpers/temp_directory_test_case.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import sublime
21
import os
32
import shutil
3+
import sublime
44
import tempfile
5+
56
from .. import DeferrableTestCase
67

78

unittesting/mixin.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
from collections import ChainMap
21
import os
3-
import sys
42
import re
3+
import sublime
4+
import sys
5+
6+
from collections import ChainMap
57
from glob import glob
68

79
from .utils import reload_package
810
from .utils import OutputPanel
911
from .utils import JsonFile
1012
from .utils import ProgressBar
1113

12-
import sublime
1314

1415

1516
DEFAULT_SETTINGS = {

unittesting/package.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import logging
2+
import os
13
import sublime
24
import sublime_plugin
35
import sys
4-
import os
5-
import logging
6+
import threading
7+
68
from unittest import TextTestRunner, TestSuite
9+
710
from .core import (
811
TestLoader,
912
DeferringTextTestRunner,
@@ -12,7 +15,6 @@
1215
from .mixin import UnitTestingMixin
1316
from .const import DONE_MESSAGE
1417
from .utils import ProgressBar, StdioSplitter
15-
import threading
1618

1719

1820
class UnitTestingCommand(sublime_plugin.ApplicationCommand, UnitTestingMixin):

unittesting/syntax.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import sublime
2+
import sublime_api
23
import sublime_plugin
4+
35
from .mixin import UnitTestingMixin
46
from .const import DONE_MESSAGE
57

6-
import sublime_api
7-
88

99
class UnitTestingSyntaxBase(sublime_plugin.ApplicationCommand, UnitTestingMixin):
1010

unittesting/utils/json_file.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import os
21
import codecs
2+
import os
33
import sublime
44

55

unittesting/utils/output_panel.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import collections
22
import os
3-
import threading
4-
53
import sublime
4+
import threading
65

76

87
class OutputPanel:

unittesting/utils/reloader.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import functools
2+
import importlib
23
import os
34
import posixpath
4-
import sys
5-
import threading
6-
import importlib
7-
85
import sublime
96
import sublime_plugin
7+
import sys
8+
import threading
109

1110

1211
def dprint(*args, fill=None, fill_width=60, **kwargs):

0 commit comments

Comments
 (0)