Skip to content

Commit

Permalink
Formatted code with black --line-length 120
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 25, 2024
1 parent 5c47020 commit a1e1e49
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions cli/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
},
Expand All @@ -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
},
Expand All @@ -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
},
Expand Down

0 comments on commit a1e1e49

Please sign in to comment.