From 8d9825ac95df58e96fc689173a7a2c39539e2b82 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 5 Jul 2024 08:25:24 +0200 Subject: [PATCH] chore: noqa S404 we're using static parameters with subpross, so it should be safe. --- freqtrade/__init__.py | 2 +- freqtrade/configuration/directory_operations.py | 2 +- ft_client/freqtrade_client/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/__init__.py b/freqtrade/__init__.py index d9c41c38b..0cb8dd961 100644 --- a/freqtrade/__init__.py +++ b/freqtrade/__init__.py @@ -6,7 +6,7 @@ if "dev" in __version__: from pathlib import Path try: - import subprocess + import subprocess # noqa: S404 freqtrade_basedir = Path(__file__).parent diff --git a/freqtrade/configuration/directory_operations.py b/freqtrade/configuration/directory_operations.py index 99d72dabe..3e6ed92ed 100644 --- a/freqtrade/configuration/directory_operations.py +++ b/freqtrade/configuration/directory_operations.py @@ -38,7 +38,7 @@ def chown_user_directory(directory: Path) -> None: """ if running_in_docker(): try: - import subprocess + import subprocess # noqa: S404 subprocess.check_output(["sudo", "chown", "-R", "ftuser:", str(directory.resolve())]) except Exception: diff --git a/ft_client/freqtrade_client/__init__.py b/ft_client/freqtrade_client/__init__.py index 6c0da7eae..9311fc85d 100644 --- a/ft_client/freqtrade_client/__init__.py +++ b/ft_client/freqtrade_client/__init__.py @@ -7,7 +7,7 @@ if "dev" in __version__: from pathlib import Path try: - import subprocess + import subprocess # noqa: S404 freqtrade_basedir = Path(__file__).parent