Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 14, 2024
1 parent 375ba4d commit ec71c9f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/aiida/manage/configuration/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Check warning on line 248 in src/aiida/manage/configuration/profile.py

View check run for this annotation

Codecov / codecov/patch

src/aiida/manage/configuration/profile.py#L248

Added line #L248 was not covered by tests

return DAEMON_DIR / f'circus-{self.name}.port'

Check warning on line 250 in src/aiida/manage/configuration/profile.py

View check run for this annotation

Codecov / codecov/patch

src/aiida/manage/configuration/profile.py#L250

Added line #L250 was not covered by tests

@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',
Expand All @@ -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

Check warning on line 271 in src/aiida/manage/configuration/profile.py

View check run for this annotation

Codecov / codecov/patch

src/aiida/manage/configuration/profile.py#L271

Added line #L271 was not covered by tests

return DAEMON_DIR / f'aiida-{self.name}.pid'

Check warning on line 273 in src/aiida/manage/configuration/profile.py

View check run for this annotation

Codecov / codecov/patch

src/aiida/manage/configuration/profile.py#L273

Added line #L273 was not covered by tests

Expand Down

0 comments on commit ec71c9f

Please sign in to comment.