Skip to content

Commit 4416fbb

Browse files
Fix up deepsource complaints (#57)
Include Various Hotfixes: * Refactor pointless global doctoring to muzzle linter PYL-W0105 (- Fixes #54 -) * Resolves PYL-W0107 (- Fixes #55 -) * Fix Anti-pattern PYL-R0123 (- Fixes #53 -) * Resolve conflicting style-linting (- WIP #56 -) * Resolves PYL-W1503 (- Fixes #56 -)
1 parent 470ee5f commit 4416fbb

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

pythonrepo/pythonrepo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737

3838
from . import __version__
39-
"""The version of this program."""
4039

4140

4241
__prog__ = str(__module__)

tests/profiling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ def __enter__(self):
135135

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

140139

141140
def do_time_profile(func, timer_name="time_profile"):

tests/test_basic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ class BasicTestSuite(unittest.TestCase):
2727
def test_absolute_truth_and_meaning(self):
2828
"""Insanitty Test. Because it only matters if we're not mad as hatters."""
2929
assert True
30+
self.assertTrue(True) # skipcq: PYL-W1503
3031

3132
def test_meta_test(self):
3233
"""Insanity Test for unittests assertion."""
33-
self.assertTrue(True)
34-
self.assertFalse(False)
34+
self.assertTrue(True) # skipcq: PYL-W1503
35+
self.assertFalse(False) # skipcq: PYL-W1503
3536
self.assertIsNone(None)
3637

3738
def test_syntax(self):

tests/test_usage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

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

171171
def test_syntax(self):
172172
"""Test case importing code. if ( import is not None ) usage."""

0 commit comments

Comments
 (0)