chore: Fix errors through S404 noqa's

This commit is contained in:
Matthias
2025-04-09 20:10:19 +02:00
parent feab28de91
commit a85dc6972d
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import subprocess # noqa: S404 import subprocess # noqa: S404, RUF100
from pathlib import Path from pathlib import Path
+1 -1
View File
@@ -6,7 +6,7 @@ if "dev" in __version__:
from pathlib import Path from pathlib import Path
try: try:
import subprocess # noqa: S404 import subprocess # noqa: S404, RUF100
freqtrade_basedir = Path(__file__).parent freqtrade_basedir = Path(__file__).parent
@@ -37,7 +37,7 @@ def chown_user_directory(directory: Path) -> None:
""" """
if running_in_docker(): if running_in_docker():
try: try:
import subprocess # noqa: S404 import subprocess # noqa: S404, RUF100
subprocess.check_output(["sudo", "chown", "-R", "ftuser:", str(directory.resolve())]) subprocess.check_output(["sudo", "chown", "-R", "ftuser:", str(directory.resolve())])
except Exception: except Exception:
+1 -1
View File
@@ -7,7 +7,7 @@ if "dev" in __version__:
from pathlib import Path from pathlib import Path
try: try:
import subprocess # noqa: S404 import subprocess # noqa: S404, RUF100
freqtrade_basedir = Path(__file__).parent freqtrade_basedir = Path(__file__).parent
+1 -1
View File
@@ -1,4 +1,4 @@
import subprocess # noqa: S404 import subprocess # noqa: S404, RUF100
import time import time
from tests.conftest import is_arm, is_mac from tests.conftest import is_arm, is_mac