Skip to content

Fix up deepsource #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/{}"""
Expand Down
4 changes: 2 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions tests/test_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down
Loading