|
15 | 15 | del sys.modules[module_name]
|
16 | 16 | prefix = None
|
17 | 17 |
|
18 |
| -from . import unittesting # noqa: F402 |
| 18 | +from . import unittesting |
| 19 | + |
19 | 20 | sys.modules["unittesting"] = unittesting
|
20 | 21 |
|
21 | 22 |
|
22 |
| -from unittesting import UnitTestingRunSchedulerCommand # noqa: F401 |
23 |
| -from unittesting import UnitTestingCommand # noqa: F401 |
24 |
| -from unittesting import UnitTestingCoverageCommand # noqa: F401 |
25 |
| -from unittesting import UnitTestingCurrentFileCommand # noqa: F401 |
26 |
| -from unittesting import UnitTestingCurrentPackageCommand # noqa: F401 |
27 |
| -from unittesting import UnitTestingCurrentPackageCoverageCommand # noqa: F401 |
28 |
| -from unittesting import UnitTestingSyntaxCommand # noqa: F401 |
29 |
| -from unittesting import UnitTestingSyntaxCompatibilityCommand # noqa: F401 |
30 |
| -from unittesting import UnitTestingColorSchemeCommand # noqa: F401 |
| 23 | +from unittesting import UnitTestingRunSchedulerCommand |
| 24 | +from unittesting import UnitTestingCommand |
| 25 | +from unittesting import UnitTestingCoverageCommand |
| 26 | +from unittesting import UnitTestingCurrentFileCommand |
| 27 | +from unittesting import UnitTestingCurrentPackageCommand |
| 28 | +from unittesting import UnitTestingCurrentPackageCoverageCommand |
| 29 | +from unittesting import UnitTestingSyntaxCommand |
| 30 | +from unittesting import UnitTestingSyntaxCompatibilityCommand |
| 31 | +from unittesting import UnitTestingColorSchemeCommand |
31 | 32 |
|
32 | 33 |
|
33 | 34 | __all__ = [
|
|
39 | 40 | "UnitTestingCurrentPackageCoverageCommand",
|
40 | 41 | "UnitTestingSyntaxCommand",
|
41 | 42 | "UnitTestingSyntaxCompatibilityCommand",
|
42 |
| - "UnitTestingColorSchemeCommand" |
| 43 | + "UnitTestingColorSchemeCommand", |
43 | 44 | ]
|
44 | 45 |
|
45 | 46 | UT33_CODE = """
|
@@ -80,20 +81,20 @@ def plugin_loaded():
|
80 | 81 |
|
81 | 82 | try:
|
82 | 83 | try:
|
83 |
| - with open(os.path.join(UT33, "plugin.py"), 'x') as f: |
| 84 | + with open(os.path.join(UT33, "plugin.py"), "x") as f: |
84 | 85 | f.write(UT33_CODE)
|
85 | 86 | except FileExistsError:
|
86 | 87 | pass
|
87 | 88 |
|
88 | 89 | try:
|
89 |
| - with open(os.path.join(UT33, "dependencies.json"), 'x') as f: |
| 90 | + with open(os.path.join(UT33, "dependencies.json"), "x") as f: |
90 | 91 | f.write(json.dumps({"*": {">3000": ["coverage"]}}))
|
91 | 92 | except FileExistsError:
|
92 | 93 | pass
|
93 | 94 |
|
94 | 95 | try:
|
95 | 96 | # hide from Package Control quick panels
|
96 |
| - open(os.path.join(UT33, ".hidden-sublime-package"), 'x').close() |
| 97 | + open(os.path.join(UT33, ".hidden-sublime-package"), "x").close() |
97 | 98 | except FileExistsError:
|
98 | 99 | pass
|
99 | 100 |
|
|
0 commit comments