Skip to content

Use f-strings for the remaining log messages#731

Merged
laughingman7743 merged 2 commits into
masterfrom
feature/f-string-log-messages
Jul 6, 2026
Merged

Use f-strings for the remaining log messages#731
laughingman7743 merged 2 commits into
masterfrom
feature/f-string-log-messages

Conversation

@laughingman7743

Copy link
Copy Markdown
Member

WHAT

Converts the remaining %-style logger calls (14 call sites across 7 files: the result-set modules, pandas/util.py, and spark/common.py) to f-strings. The filesystem modules were already converted in #730, where ruff's G004 (logging-f-string) rule was moved to the ignore list.

WHY

Unifies the logging style across the codebase on f-strings, per the maintainer's preference. No behavioral change; the lazy-formatting difference is irrelevant for these exception/info messages.

🤖 Generated with Claude Code

laughingman7743 and others added 2 commits July 6, 2026 10:44
Convert the %-style logger calls outside the filesystem modules (which
were converted in GH-730) to f-strings, unifying the logging style
across the codebase.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The line-based grep missed a multi-line %-style debug call and an
info call built from a dynamically appended format string in
pandas/result_set.py; convert both to f-strings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@laughingman7743 laughingman7743 marked this pull request as ready for review July 6, 2026 02:31
@laughingman7743 laughingman7743 merged commit e786739 into master Jul 6, 2026
29 of 30 checks passed
@laughingman7743 laughingman7743 deleted the feature/f-string-log-messages branch July 6, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant