Skip to content

Commit e82e765

Browse files
authored
fix: resolve code scanning alerts (#67)
- Replace print() with sys.stderr.write() at module level in utils.py - Remove unused Path import from vault.py Resolves GitHub code scanning alerts #5, #6, #7
1 parent 942ba4b commit e82e765

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/devstack/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from rich.console import Console
2929
from dotenv import dotenv_values
3030
except ImportError as e:
31-
print(f"Error: Missing required dependency: {e}")
32-
print("Install with: uv pip install -r scripts/requirements.txt")
31+
sys.stderr.write(f"Error: Missing required dependency: {e}\n")
32+
sys.stderr.write("Install with: uv pip install -r scripts/requirements.txt\n")
3333
sys.exit(1)
3434

3535
# Rich console for output

scripts/devstack/vault.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
from __future__ import annotations
2222

23-
from pathlib import Path
2423
from typing import Optional
2524

2625
from .utils import run_command, console, VAULT_CONFIG_DIR

0 commit comments

Comments
 (0)