Skip to content

Commit a144971

Browse files
authored
Merge pull request #1379 from dbcli/RW/enable-bugbear-rule-B007-variable-unused
Enable lint rule B007: variable unused
2 parents 4959ada + 4c0208e commit a144971

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mycli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ def one_iteration(text: str | None = None) -> None:
887887
# Restart connection to the database
888888
sqlexecute.connect()
889889
try:
890-
for title, cur, headers, status in sqlexecute.run(f"kill {connection_id_to_kill}"):
890+
for _title, _cur, _headers, status in sqlexecute.run(f"kill {connection_id_to_kill}"):
891891
status_str = str(status).lower()
892892
if status_str.find("ok") > -1:
893893
logger.debug("cancelled query, connection id: %r, sql: %r", connection_id_to_kill, text)

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-
'B007', # TODO: Variable unused
7069
'B015', # TODO: Pointless comparison
7170
'B904', # TODO: Raise exceptions with "raise ... from err"
7271
'E401', # Multiple imports on one line

0 commit comments

Comments
 (0)