This commit is contained in:
J. Nick Koston
2025-10-19 14:40:47 -10:00
parent c9700a0450
commit 1946656ea8
4 changed files with 113 additions and 37 deletions

View File

@@ -53,15 +53,8 @@ def extract_github_urls(platformio_ini: Path) -> list[str]:
matches = github_pattern.findall(line)
urls.extend(matches)
# Remove duplicates while preserving order
seen = set()
unique_urls = []
for url in urls:
if url not in seen:
seen.add(url)
unique_urls.append(url)
return unique_urls
# Remove duplicates while preserving order using dict
return list(dict.fromkeys(urls))
def main():