Skip to content

Commit 1547e0d

Browse files
committed
CI: cmdeploy fmt
1 parent e3cc53e commit 1547e0d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

chatmaild/src/chatmaild/doveauth.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ def encrypt_password(password: str):
2424
def is_allowed_to_create(config: Config, user, cleartext_password) -> bool:
2525
"""Return True if user and password are admissable."""
2626
if os.path.exists(NOCREATE_FILE):
27-
logging.warning(
28-
f"blocked account creation because {NOCREATE_FILE!r} exists."
29-
)
27+
logging.warning(f"blocked account creation because {NOCREATE_FILE!r} exists.")
3028
return False
3129
password_length = len(cleartext_password)
3230
if config.invite_token:
@@ -36,7 +34,7 @@ def is_allowed_to_create(config: Config, user, cleartext_password) -> bool:
3634
break
3735
else:
3836
logging.warning(
39-
f"blocked account creation because password didn't contain invite token(s)."
37+
"blocked account creation because password didn't contain invite token(s)."
4038
)
4139
return False
4240

cmdeploy/src/cmdeploy/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,9 @@ def deploy_chatmail(config_path: Path, disable_mail: bool) -> None:
696696
running_service = host.get_fact(Port, port=port)
697697
if running_service:
698698
if running_service not in service:
699-
Out().red(f"Deploy failed: port {port} is occupied by: {running_service}")
699+
Out().red(
700+
f"Deploy failed: port {port} is occupied by: {running_service}"
701+
)
700702
exit(1)
701703

702704
apt.packages(

0 commit comments

Comments
 (0)