fix: remove unused json import and has_v_prefix variable in check_versions.py
CI/CD / lint-test (push) Failing after 41s
CI/CD / build-push (push) Has been skipped

This commit is contained in:
claude-code
2026-07-12 16:21:40 +00:00
parent ce470431c6
commit a2aa42d62a
-2
View File
@@ -9,7 +9,6 @@ notification with the weekly report.
import os
import re
import json
import logging
import subprocess
from dataclasses import dataclass, field
@@ -121,7 +120,6 @@ def parse_image_ref(image: str) -> ImageInfo:
def _semver_tags(tags: list[str], current_tag: str) -> Optional[str]:
"""From a list of tags, return the latest stable semver tag comparable to current."""
norm = current_tag.lstrip("v")
has_v_prefix = current_tag.startswith("v")
# Detect suffix pattern (e.g. '-alpine', '-amd64')
suffix_match = re.search(r"(-[a-zA-Z][a-zA-Z0-9._-]*)$", norm)