fix: remove unused json import and has_v_prefix variable in check_versions.py
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user