mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-09-04 00:35:22 +00:00
chore: formatting
This commit is contained in:
@@ -10,7 +10,7 @@ _env_replace_matcher = re.compile(r"\$\{(\w|_)+:?.*}")
|
|||||||
|
|
||||||
@typing.no_type_check # pyaml does not have good hints, everything is Any
|
@typing.no_type_check # pyaml does not have good hints, everything is Any
|
||||||
def load_yaml_with_envvars(
|
def load_yaml_with_envvars(
|
||||||
stream: TextIO, environ: dict[str, Any] = os.environ
|
stream: TextIO, environ: dict[str, Any] = os.environ
|
||||||
) -> dict[str, Any]:
|
) -> dict[str, Any]:
|
||||||
"""Load yaml file with environment variable expansion.
|
"""Load yaml file with environment variable expansion.
|
||||||
|
|
||||||
|
@@ -32,7 +32,6 @@ def test_environment_defaults_variables_are_loaded_with_duplicated_delimiters()
|
|||||||
assert loaded["replaced"] == ":duped::"
|
assert loaded["replaced"] == ":duped::"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_environment_without_defaults_fails() -> None:
|
def test_environment_without_defaults_fails() -> None:
|
||||||
sample_yaml = """
|
sample_yaml = """
|
||||||
replaced: ${TEST_REPLACE_ME}
|
replaced: ${TEST_REPLACE_ME}
|
||||||
|
Reference in New Issue
Block a user