From 4f4714e95fba699fd71ffa7faabbed9e6a1dc96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Andrei?= Date: Wed, 8 Nov 2023 16:30:29 -0300 Subject: [PATCH] Ignore B404 issue on update.py --- src/pas/plugins/oidc/locales/update.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/pas/plugins/oidc/locales/update.py b/src/pas/plugins/oidc/locales/update.py index 4a4ad27..2225b49 100644 --- a/src/pas/plugins/oidc/locales/update.py +++ b/src/pas/plugins/oidc/locales/update.py @@ -38,10 +38,7 @@ def locale_folder_setup(domain: str): f"--input={locale_path}/{domain}.pot " f"--output={locale_path}/{lang}/LC_MESSAGES/{domain}.po" ) - subprocess.call( - cmd, - shell=True, - ) + subprocess.call(cmd, shell=True) # nosec B404 def _rebuild(domain: str): @@ -50,10 +47,7 @@ def _rebuild(domain: str): f"--exclude {excludes} " f"--create {domain} {target_path}" ) - subprocess.call( - cmd, - shell=True, - ) + subprocess.call(cmd, shell=True) # nosec B404 def _sync(domain: str): @@ -61,10 +55,7 @@ def _sync(domain: str): f"{i18ndude} sync --pot {locale_path}/{domain}.pot " f"{locale_path}/*/LC_MESSAGES/{domain}.po" ) - subprocess.call( - cmd, - shell=True, - ) + subprocess.call(cmd, shell=True) # nosec B404 def update_locale():