From a1e1e49b4bccc5de1d3cf913aa85751f4065d37a Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 18:51:50 +0000 Subject: [PATCH] Formatted code with black --line-length 120 --- cli/env.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/cli/env.py b/cli/env.py index 98c815f..0b96acf 100644 --- a/cli/env.py +++ b/cli/env.py @@ -27,9 +27,7 @@ ).replace( "_DICT", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in dotenv_values(".vars").items() if val is not None }, # load development variables @@ -40,9 +38,7 @@ ).replace( "_DICT", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in os.environ.items() if key.startswith("VAR_") and val is not None }, @@ -61,9 +57,7 @@ .replace( "SSM_", "", - ): ast.literal_eval(val) - if "_DICT" in key - else val + ): (ast.literal_eval(val) if "_DICT" in key else val) for key, val in dotenv_values(".secrets").items() if val is not None }, @@ -79,9 +73,7 @@ .replace( "SSM_", "", - ): ast.literal_eval(val) - if "DICT" in key - else val + ): (ast.literal_eval(val) if "DICT" in key else val) for key, val in os.environ.items() if key.startswith("SECRET_") or key.startswith("SSM_") and val is not None },