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