From ec71c9f281a2b8c48756d9919e74053f64ccadc8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:56:02 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/aiida/manage/configuration/profile.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/aiida/manage/configuration/profile.py b/src/aiida/manage/configuration/profile.py index 0e7dc57c94..f70d5c49b3 100644 --- a/src/aiida/manage/configuration/profile.py +++ b/src/aiida/manage/configuration/profile.py @@ -19,6 +19,7 @@ from aiida.common import exceptions from .options import parse_option + # from .settings import DAEMON_DIR, DAEMON_LOG_DIR if TYPE_CHECKING: @@ -232,25 +233,25 @@ def repository_path(self) -> pathlib.Path: @property def circus_log_file(self) -> pathlib.Path: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_LOG_DIR return DAEMON_LOG_DIR / f'circus_{self.name}.log' @property def circus_pid_file(self) -> pathlib.Path: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_DIR return DAEMON_DIR / f'circus_{self.name}.pid' @property def circus_port_file(self) -> pathlib.Path: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_DIR return DAEMON_DIR / f'circus-{self.name}.port' @property def circus_socket_endpoints(self) -> dict[str, pathlib.Path]: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_DIR return { 'file': DAEMON_DIR / f'circus-{self.name}.sockets', @@ -261,13 +262,13 @@ def circus_socket_endpoints(self) -> dict[str, pathlib.Path]: @property def daemon_log_file(self) -> pathlib.Path: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_LOG_DIR return DAEMON_LOG_DIR / f'aiida-{self.name}.log' @property def daemon_pid_file(self) -> pathlib.Path: - from .settings import DAEMON_DIR, DAEMON_LOG_DIR + from .settings import DAEMON_DIR return DAEMON_DIR / f'aiida-{self.name}.pid'