chore: Fix errors through S404 noqa's

pull/11620/head
Matthias 11 months ago
parent feab28de91
commit a85dc6972d

@ -1,4 +1,4 @@
import subprocess # noqa: S404
import subprocess # noqa: S404, RUF100
from pathlib import Path

@ -6,7 +6,7 @@ if "dev" in __version__:
from pathlib import Path
try:
import subprocess # noqa: S404
import subprocess # noqa: S404, RUF100
freqtrade_basedir = Path(__file__).parent

@ -37,7 +37,7 @@ def chown_user_directory(directory: Path) -> None:
"""
if running_in_docker():
try:
import subprocess # noqa: S404
import subprocess # noqa: S404, RUF100
subprocess.check_output(["sudo", "chown", "-R", "ftuser:", str(directory.resolve())])
except Exception:

@ -7,7 +7,7 @@ if "dev" in __version__:
from pathlib import Path
try:
import subprocess # noqa: S404
import subprocess # noqa: S404, RUF100
freqtrade_basedir = Path(__file__).parent

@ -1,4 +1,4 @@
import subprocess # noqa: S404
import subprocess # noqa: S404, RUF100
import time
from tests.conftest import is_arm, is_mac

Loading…
Cancel
Save