From 6611aa6fd8f70d92488c34d3a6ca80f6f151ce04 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Mon, 2 Feb 2026 21:48:01 +0000 Subject: [PATCH] fix: resolve CI linting failures --- depaudit/checks/unused.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/depaudit/checks/unused.py b/depaudit/checks/unused.py index fad38d8..e1c1274 100644 --- a/depaudit/checks/unused.py +++ b/depaudit/checks/unused.py @@ -4,7 +4,6 @@ import ast import re from dataclasses import dataclass from pathlib import Path -from typing import Any from depaudit.checks import UnusedDependency @@ -51,7 +50,6 @@ class PythonSourceParser(SourceParser): ) elif isinstance(node, ast.ImportFrom): module = node.module or "" - names = [alias.asname or alias.name for alias in node.names] for alias in node.names: imports.append( ImportStatement( @@ -122,7 +120,7 @@ class GoSourceParser(SourceParser): ) ) - inline_imports = re.findall(r'\bimport\s+["\']([^"\']+)["\']', content) + inline_imports = re.findall(r'\bimport\s+[\"\']([^\"\']+)[\"\']', content) for module_name in inline_imports: imports.append( ImportStatement(