From ae6fdc56775a8f28c6e7068f0200fcd2d76fe74d Mon Sep 17 00:00:00 2001 From: Calibrain Date: Wed, 21 Oct 2026 06:29:49 +0000 Subject: [PATCH] chore: drop imports left unused by today's merges `ruff check` fails on main with three F401 unused imports. Each lost its last use when code moved into a shared helper: - image_cache: `ipaddress`, after the cover-cache address check moved to network.hostname_resolves_publicly (f837506) - orchestrator: `email.utils.parseaddr`, after the recipient check moved to request_helpers.is_plain_email_address (cb72ce8) - notifications: `threading`, which #1510 removed but its merge of main brought back No behavior change. --- shelfmark/core/image_cache.py | 1 - shelfmark/core/notifications.py | 1 - shelfmark/download/orchestrator.py | 1 - 3 files changed, 3 deletions(-) diff --git a/shelfmark/core/image_cache.py b/shelfmark/core/image_cache.py index 21ea7317..77af1a66 100644 --- a/shelfmark/core/image_cache.py +++ b/shelfmark/core/image_cache.py @@ -1,7 +1,6 @@ """Disk-based image cache with LRU eviction.""" import hashlib -import ipaddress import json import threading import time diff --git a/shelfmark/core/notifications.py b/shelfmark/core/notifications.py index f7f7a6f8..88d6e525 100644 --- a/shelfmark/core/notifications.py +++ b/shelfmark/core/notifications.py @@ -5,7 +5,6 @@ from __future__ import annotations import ipaddress import logging import socket -import threading from concurrent.futures import ThreadPoolExecutor from contextlib import contextmanager, suppress from contextvars import ContextVar diff --git a/shelfmark/download/orchestrator.py b/shelfmark/download/orchestrator.py index 48fc69b6..c0964f89 100644 --- a/shelfmark/download/orchestrator.py +++ b/shelfmark/download/orchestrator.py @@ -9,7 +9,6 @@ import random import threading import time from concurrent.futures import Future, ThreadPoolExecutor -from email.utils import parseaddr from functools import partial from pathlib import Path from threading import Event, Lock