Skip to content

Commit 03ba956

Browse files
Merge branches 'skip-silly-PYL-W0621', 'skip-early-del-PTC-W0043', 'skip-ambiguous-module-PYL-C0414' and 'fix-up-overload-PYL-W0622'
* skip-silly-PYL-W0621: refactor to avoid PYL-W0621 ( - Fixes #49 - ) * skip-early-del-PTC-W0043: Marked early del to ignore false-positives of PYL-W0043 ( - Fixes #47 - ) * skip-ambiguous-module-PYL-C0414: Marked early del to ignore false-positives of PYL-C0414 ( - Fixes #48 - ) * fix-up-overload-PYL-W0622: comment to skip false PYL-W0622 ( - Fixes #50 - )
4 parents 5f11d12 + 259ffb6 + f23e54a + 3566cda commit 03ba956

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

tests/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@
3636
ImportErr = None
3737
del ImportErr
3838
raise ImportError(str("Test module failed completely."))
39-
from tests import context as context
39+
from tests import context as context # skipcq: PYL-C0414
4040
if context.__name__ is None:
4141
raise ImportError(str("Test module failed to import even the context framework."))
42-
from tests import profiling as profiling
42+
from tests import profiling as profiling # skipcq: PYL-C0414
4343
if profiling.__name__ is None:
4444
raise ImportError(str("Test module failed to import even the profiling framework."))
4545
from tests import test_basic

tests/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636

3737
try:
38-
import pythonrepo as pythonrepo
38+
import pythonrepo as pythonrepo # skipcq: PYL-C0414
3939
if pythonrepo.__name__ is None:
4040
raise ImportError("Failed to import pythonrepo.")
4141
except Exception as badErr:

tests/profiling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def checkpoint(self, name=''):
132132
def __enter__(self):
133133
return self
134134

135-
def __exit__(self, type, value, traceback):
135+
def __exit__(self, type, value, traceback): # skipcq: PLY-W0622
136136
self.checkpoint(str("finished"))
137137
pass
138138

tests/test_usage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_template_case(self):
215215
print(str((err.args)))
216216
print(str(""))
217217
err = None
218-
del err
218+
del err # skipcq: PTC-W0043
219219
theResult = False
220220
self.assertTrue(theResult)
221221

@@ -253,7 +253,7 @@ def test_profile_template_case(self):
253253
print(str((err.args)))
254254
print(str(""))
255255
err = None
256-
del err
256+
del err # skipcq: PTC-W0043
257257
theResult = False
258258
self.assertTrue(theResult)
259259

@@ -292,7 +292,7 @@ def test_fail_template_case(self):
292292
print(str((err.args)))
293293
print(str(""))
294294
err = None
295-
del err
295+
del err # skipcq: PTC-W0043
296296
theResult = False
297297
self.assertTrue(theResult)
298298

@@ -331,7 +331,7 @@ def test_bad_template_case(self):
331331
print(str((err.args)))
332332
print(str(""))
333333
err = None
334-
del err
334+
del err # skipcq: PTC-W0043
335335
theResult = False
336336
self.assertTrue(theResult)
337337

0 commit comments

Comments
 (0)