mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-06 03:22:23 -08:00
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
This commit is contained in:
parent
14d2b3b36e
commit
b04dd8df63
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue