Skip to content

Fix up deepsource complaints #57

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 12 commits into from
Jul 15, 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
1 change: 0 additions & 1 deletion pythonrepo/pythonrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@


from . import __version__
"""The version of this program."""


__prog__ = str(__module__)
Expand Down
1 change: 0 additions & 1 deletion tests/profiling.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ def __enter__(self):

def __exit__(self, type, value, traceback): # skipcq: PYL-W0622
self.checkpoint(str("finished"))
pass


def do_time_profile(func, timer_name="time_profile"):
Expand Down
5 changes: 3 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ class BasicTestSuite(unittest.TestCase):
def test_absolute_truth_and_meaning(self):
"""Insanitty Test. Because it only matters if we're not mad as hatters."""
assert True
self.assertTrue(True) # skipcq: PYL-W1503

def test_meta_test(self):
"""Insanity Test for unittests assertion."""
self.assertTrue(True)
self.assertFalse(False)
self.assertTrue(True) # skipcq: PYL-W1503
self.assertFalse(False) # skipcq: PYL-W1503
self.assertIsNone(None)

def test_syntax(self):
Expand Down
6 changes: 3 additions & 3 deletions tests/test_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Python Repo Template
# ..................................
# Copyright (c) 2017-2019, Kendrick Walls
# Copyright (c) 2017-2024, Kendrick Walls
# ..................................
# Licensed under MIT (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -57,7 +57,7 @@ def buildPythonCommand(args=None):
# you need to change this to the name of your project
__project__ = str("pythonrepo")
try:
if args is None or args is [None]:
if args is None or (args == [None]):
theArgs = ["exit 1 ; #"]
else:
theArgs = args
Expand Down Expand Up @@ -166,7 +166,7 @@ class BasicUsageTestSuite(unittest.TestCase):

def test_absolute_truth_and_meaning(self):
"""Insanity Test. if ( is true ) usage."""
self.assertTrue(True)
self.assertTrue(True) # skipcq: PYL-W1503

def test_syntax(self):
"""Test case importing code. if ( import is not None ) usage."""
Expand Down
Loading