From b04dd8df634f8cbfb5bb94a813543fe6050a364e Mon Sep 17 00:00:00 2001 From: Kirill Markin Date: Sun, 25 May 2025 11:07:43 +0300 Subject: [PATCH] Fix pylint logging-fstring-interpolation warning - Replace f-string with lazy % formatting in logging.debug() call - Resolves W1203 pylint warning for better logging performance - Achieves 10.00/10 pylint rating --- repo_to_text/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo_to_text/core/core.py b/repo_to_text/core/core.py index 08a99be..6dfcda9 100644 --- a/repo_to_text/core/core.py +++ b/repo_to_text/core/core.py @@ -79,7 +79,7 @@ def process_line( except (ValueError, OSError) as e: # Handle case where relpath fails (e.g., in CI when cwd is unavailable) # Use absolute path conversion as fallback - logging.debug(f'os.path.relpath failed for {full_path}, using fallback: {e}') + logging.debug('os.path.relpath failed for %s, using fallback: %s', full_path, e) if os.path.isabs(full_path) and os.path.isabs(path): # Both are absolute, try manual relative calculation try: