fix: resolve CI/CD test failures and linting issues
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
import json
|
||||
import re
|
||||
from pathlib import Path
|
||||
from typing import Any, Optional, Tuple
|
||||
from typing import Optional, Tuple
|
||||
|
||||
import yaml
|
||||
|
||||
@@ -104,9 +103,9 @@ def validate_env(data: str) -> Tuple[bool, Optional[ValidationError]]:
|
||||
if not stripped or stripped.startswith("#"):
|
||||
continue
|
||||
if not line.strip() == line:
|
||||
return False, ValidationError(f"Invalid KEY=value format", line_num)
|
||||
return False, ValidationError("Invalid KEY=value format", line_num)
|
||||
if not ENV_LINE_PATTERN.match(line):
|
||||
return False, ValidationError(f"Invalid KEY=value format", line_num)
|
||||
return False, ValidationError("Invalid KEY=value format", line_num)
|
||||
return True, None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user