diff --git a/spcd/__init__.py b/spcd/__init__.py index 13584c8..c18166b 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -26,10 +26,10 @@ def clone_project_branch() -> None: split() log.info(project) split() - log.info(f"""\ -{project.url} + log.info("""\ +%s ↓ -""") +""", project.url) run( "git", "clone", @@ -83,9 +83,9 @@ def list_environment_variables() -> None: step("List environment variables") for variable, value in sorted(projects.environment.items()): if variable not in ["SPCD", "SPCD_SSH_KEY"]: - log.info(f"{variable} = {value}") + log.info("%s = %s", variable, value) else: - log.info(f"{variable}") + log.info("%s", variable) def main(main_file: str) -> None: diff --git a/spcd/util.py b/spcd/util.py index 4148e93..66fd269 100644 --- a/spcd/util.py +++ b/spcd/util.py @@ -43,12 +43,12 @@ def cat(file: Path) -> None: def frame(text: str) -> None: """Open a new frame in the log output.""" - log.info(f"{env.SPCD_OPEN}{text}") + log.info("%s%s", env.SPCD_OPEN, text) def shut(text: str) -> None: """Close current frame in the log output.""" - log.info(f"{env.SPCD_SHUT}{text}") + log.info("%s%s", env.SPCD_SHUT, text) def split() -> None: @@ -60,5 +60,5 @@ def step(text: str) -> None: """Increment the step number of the current build process.""" shell.STEP += 1 log.info(env.SPCD_DOWN) - log.info(f"{env.SPCD_VERT} {shell.STEP} {text}") + log.info("%s %s %s", env.SPCD_VERT, shell.STEP, text) log.info(env.SPCD___UP)