crdt-sync: clear the ruff 0.15.2 findings CI reported

My local pre-commit cache holds three ruff versions and I had been resolving
`ls ... | head -1`, which picks 0.14.5 — CI pins 0.15.2, and the newer version
flags eight things the older one does not (unused imports left behind in
_syncargs.py and tool/_oauth_callback.py, import ordering, an empty
TYPE_CHECKING block). Re-ran against the pinned binary; `ruff check` is now
"All checks passed!" under the same version CI uses.

259 tests at 100% branch coverage, `pre-commit run --all-files` clean for this
config, and `python3 -m tool.google_id_token --help` still runs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
This commit is contained in:
Krzysztof Rudnicki 2026-08-22 15:56:08 +02:00
parent 9f271b0d37
commit 4c734c1cea
2 changed files with 4 additions and 8 deletions

View File

@ -9,7 +9,7 @@ Re-exported from :mod:`crdt_sync._sync`, so existing imports keep working.
from __future__ import annotations
from dataclasses import dataclass, field
from dataclasses import dataclass
from typing import TYPE_CHECKING
if TYPE_CHECKING:

View File

@ -9,16 +9,12 @@ request and then stop.
from __future__ import annotations
import http.server
import time
import urllib.parse
import logging
import socket
import threading
from typing import TYPE_CHECKING, ClassVar
from urllib.parse import parse_qs, urlparse
if TYPE_CHECKING:
from collections.abc import Callable
import time
from typing import ClassVar
import urllib.parse
_logger = logging.getLogger(__name__)