Skip to content

Commit c883f20

Browse files
authored
Merge pull request #1380 from dbcli/RW/enable-bugbear-rule-B015-pointless-comparison
Enable lint rule B015: pointless comparison
2 parents 7b03d86 + ac90daa commit c883f20

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ select = ['A', 'B', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID']
6666
ignore = [
6767
'B005', # Multi-character strip()
6868
'B006', # TODO: Mutable data structures for argument defaults
69-
'B015', # TODO: Pointless comparison
7069
'E401', # Multiple imports on one line
7170
'E402', # Module level import not at top of file
7271
'PIE808', # range() starting with 0

test/test_special_iocommands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ def test_editor_command():
5151

5252
os.environ["EDITOR"] = "true"
5353
os.environ["VISUAL"] = "true"
54-
# Set the editor to Notepad on Windows
5554
if os.name != "nt":
56-
mycli.packages.special.open_external_editor(sql=r"select 1") == "select 1"
55+
assert mycli.packages.special.open_external_editor(sql=r"select 1") == ('select 1', None)
5756
else:
5857
pytest.skip("Skipping on Windows platform.")
5958

0 commit comments

Comments
 (0)