diff --git a/setup.py b/setup.py index afbb91c..862e023 100755 --- a/setup.py +++ b/setup.py @@ -30,8 +30,8 @@ def readFile(filename): theResult = None if filename in ("""README.md""", """LICENSE.md"""): try: - with open(str("""./{}""").format(str(filename))) as f: - theResult = f.read() + with open(str("""./{}""").format(str(filename))) as file: + theResult = file.read() except Exception: theResult = str( """See https://github.com/reactive-firewall/python-repo/{}""" diff --git a/tests/__init__.py b/tests/__init__.py index 702eb23..7eb262c 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -36,10 +36,10 @@ ImportErr = None del ImportErr raise ImportError(str("Test module failed completely.")) - from tests import context as context + from tests import context as context # skipcq: PYL-C0414 if context.__name__ is None: raise ImportError(str("Test module failed to import even the context framework.")) - from tests import profiling as profiling + from tests import profiling as profiling # skipcq: PYL-C0414 if profiling.__name__ is None: raise ImportError(str("Test module failed to import even the profiling framework.")) from tests import test_basic diff --git a/tests/context.py b/tests/context.py index 0295996..3552f41 100644 --- a/tests/context.py +++ b/tests/context.py @@ -35,7 +35,7 @@ try: - import pythonrepo as pythonrepo + import pythonrepo as pythonrepo # skipcq: PYL-C0414 if pythonrepo.__name__ is None: raise ImportError("Failed to import pythonrepo.") except Exception as badErr: diff --git a/tests/profiling.py b/tests/profiling.py index 6536ded..7b850c2 100644 --- a/tests/profiling.py +++ b/tests/profiling.py @@ -132,7 +132,7 @@ def checkpoint(self, name=''): def __enter__(self): return self - def __exit__(self, type, value, traceback): + def __exit__(self, type, value, traceback): # skipcq: PLY-W0622 self.checkpoint(str("finished")) pass diff --git a/tests/test_usage.py b/tests/test_usage.py index 9dfe1eb..bcb2980 100644 --- a/tests/test_usage.py +++ b/tests/test_usage.py @@ -215,7 +215,7 @@ def test_template_case(self): print(str((err.args))) print(str("")) err = None - del err + del err # skipcq: PTC-W0043 theResult = False self.assertTrue(theResult) @@ -253,7 +253,7 @@ def test_profile_template_case(self): print(str((err.args))) print(str("")) err = None - del err + del err # skipcq: PTC-W0043 theResult = False self.assertTrue(theResult) @@ -292,7 +292,7 @@ def test_fail_template_case(self): print(str((err.args))) print(str("")) err = None - del err + del err # skipcq: PTC-W0043 theResult = False self.assertTrue(theResult) @@ -331,7 +331,7 @@ def test_bad_template_case(self): print(str((err.args))) print(str("")) err = None - del err + del err # skipcq: PTC-W0043 theResult = False self.assertTrue(theResult)