Skip to content

Commit fd10a14

Browse files
author
deathaxe
committed
Remove obsolete noqa statements and reformat with black
1 parent 99f1696 commit fd10a14

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Diff for: plugin.py

+15-14
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
del sys.modules[module_name]
1616
prefix = None
1717

18-
from . import unittesting # noqa: F402
18+
from . import unittesting
19+
1920
sys.modules["unittesting"] = unittesting
2021

2122

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
3132

3233

3334
__all__ = [
@@ -39,7 +40,7 @@
3940
"UnitTestingCurrentPackageCoverageCommand",
4041
"UnitTestingSyntaxCommand",
4142
"UnitTestingSyntaxCompatibilityCommand",
42-
"UnitTestingColorSchemeCommand"
43+
"UnitTestingColorSchemeCommand",
4344
]
4445

4546
UT33_CODE = """
@@ -80,20 +81,20 @@ def plugin_loaded():
8081

8182
try:
8283
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:
8485
f.write(UT33_CODE)
8586
except FileExistsError:
8687
pass
8788

8889
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:
9091
f.write(json.dumps({"*": {">3000": ["coverage"]}}))
9192
except FileExistsError:
9293
pass
9394

9495
try:
9596
# 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()
9798
except FileExistsError:
9899
pass
99100

0 commit comments

Comments
 (0)