From 0bd69e56228bf4a53436bec940990c4f66aa029f Mon Sep 17 00:00:00 2001 From: alexAubin <4533074+alexAubin@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:27:31 +0000 Subject: [PATCH] :art: Format Python code with Black --- src/app.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app.py b/src/app.py index 12d67f0bd..b729eab19 100644 --- a/src/app.py +++ b/src/app.py @@ -2993,7 +2993,16 @@ def _make_environment_for_app_script( if manifest["packaging_format"] >= 2 or force_include_app_settings: env_dict["app"] = app data_to_redact = [] - prefixes_or_suffixes_to_redact = ["pwd", "pass", "passwd", "password", "passphrase", "secret", "key", "token"] + prefixes_or_suffixes_to_redact = [ + "pwd", + "pass", + "passwd", + "password", + "passphrase", + "secret", + "key", + "token", + ] for setting_name, setting_value in _get_app_settings(app).items(): # Ignore special internal settings like checksum__ @@ -3006,7 +3015,10 @@ def _make_environment_for_app_script( # Check if we should redact this setting value # (the check on the setting length exists to prevent stupid stuff like redacting empty string or something which is actually just 0/1, true/false, ... - if len(setting_value) > 6 and any(setting_name.startswith(p) or setting_name.endswith(p) for p in prefixes_or_suffixes_to_redact): + if len(setting_value) > 6 and any( + setting_name.startswith(p) or setting_name.endswith(p) + for p in prefixes_or_suffixes_to_redact + ): data_to_redact.append(setting_value) # Special weird case for backward compatibility...