From 4c0208e44ad63f4a8344dbe81c136d5d583541b7 Mon Sep 17 00:00:00 2001 From: Roland Walker Date: Sat, 25 Oct 2025 13:58:50 -0400 Subject: [PATCH] enable lint rule B007: variable unused --- mycli/main.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mycli/main.py b/mycli/main.py index 2d90cb24..56af1826 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -887,7 +887,7 @@ def one_iteration(text: str | None = None) -> None: # Restart connection to the database sqlexecute.connect() try: - for title, cur, headers, status in sqlexecute.run(f"kill {connection_id_to_kill}"): + for _title, _cur, _headers, status in sqlexecute.run(f"kill {connection_id_to_kill}"): status_str = str(status).lower() if status_str.find("ok") > -1: logger.debug("cancelled query, connection id: %r, sql: %r", connection_id_to_kill, text) diff --git a/pyproject.toml b/pyproject.toml index 40ca26e0..18d101d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,6 @@ select = ['A', 'B', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID'] ignore = [ 'B005', # Multi-character strip() 'B006', # TODO: Mutable data structures for argument defaults - 'B007', # TODO: Variable unused 'B015', # TODO: Pointless comparison 'B904', # TODO: Raise exceptions with "raise ... from err" 'E401', # Multiple imports on one line