Skip to content

Commit 5c1c41b

Browse files
author
Dan Gil
committed
Fix pre-commit issues: executable permission and unused variables
Signed-off-by: Dan Gil <[email protected]>
1 parent 604abc9 commit 5c1c41b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

.github/workflows/extract_dependency_versions.py

100644100755
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ def _format_notes(self, notes: str, category: str, source_file: str) -> str:
434434

435435
# Handle "ARG: VARIABLE_NAME" format
436436
if notes.startswith("ARG: "):
437-
var_name = notes[5:] # Remove "ARG: " prefix
438437
return f"Dockerfile build argument"
439438

440439
# Handle "From install script: VARIABLE_NAME" format
@@ -447,8 +446,6 @@ def _format_notes(self, notes: str, category: str, source_file: str) -> str:
447446

448447
# Handle Git dependency notes
449448
if notes.startswith("Git dependency:"):
450-
# Extract the package name after the colon
451-
pkg = notes.split(":", 1)[1].strip() if ":" in notes else ""
452449
return f"Git repository dependency"
453450

454451
# Handle "Git-based pip install from ..."
@@ -754,7 +751,6 @@ def extract_requirements_file(self, req_file: Path, component: str, category: st
754751
lines = f.readlines()
755752

756753
for i, line in enumerate(lines, 1):
757-
original_line = line
758754
line = line.strip()
759755

760756
# Skip comments and empty lines

0 commit comments

Comments
 (0)