chore: Fix errors through S404 noqa's
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import subprocess # noqa: S404
|
import subprocess # noqa: S404, RUF100
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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,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
|
||||||
|
|||||||
Reference in New Issue
Block a user