From cba20dadbb0bdedfc7936cd2deab93c49bd77082 Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Tue, 8 Jul 2025 23:01:35 +0200 Subject: [PATCH] Do not use f-strings when not needed --- example_store.py | 2 +- examples/test_ctx_args.py | 6 +++--- examples/test_vcs.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example_store.py b/example_store.py index 2ce83e0..0a04783 100644 --- a/example_store.py +++ b/example_store.py @@ -14,7 +14,7 @@ def main(): - print(f"Set up test store...") + print("Set up test store...") store = TestStore(url=API_URL) discover_ctx = TestContextStored(store) setup_logging() diff --git a/examples/test_ctx_args.py b/examples/test_ctx_args.py index 9b14c89..f48596a 100644 --- a/examples/test_ctx_args.py +++ b/examples/test_ctx_args.py @@ -14,7 +14,7 @@ def test_cmdline_parser(ctx): args, _ = parser.parse_known_args() # Log the parsed arguments - ctx.info(f"==== Parsed arguments:") + ctx.info("==== Parsed arguments:") for key, value in vars(args).items(): ctx.info(f" {key}: {value}") @@ -33,7 +33,7 @@ def test_with_ctx_args(ctx): args, _ = parser.parse_known_args() # Log the parsed arguments - ctx.debug(f"Parsed arguments:") + ctx.debug("Parsed arguments:") for key, value in vars(args).items(): ctx.debug(f" {key}: {value}") @@ -80,7 +80,7 @@ def test_file_operations(ctx): args = parser.parse_args(cli_args) # Log the parsed arguments - ctx.debug(f"File operation with arguments:") + ctx.debug("File operation with arguments:") for key, value in vars(args).items(): ctx.debug(f" {key}: {value}") diff --git a/examples/test_vcs.py b/examples/test_vcs.py index edd578a..59febb5 100644 --- a/examples/test_vcs.py +++ b/examples/test_vcs.py @@ -36,8 +36,8 @@ def vcs_helper_function(ctx, file_path): # VCSInterface implementations vcs_helper = VCSHelper() - ctx.info(f"VCS Test") - ctx.info(f"=============") + ctx.info("VCS Test") + ctx.info("=============") ctx.info(f"Testing file: {current_file}") # Detect VCS