Skip to content

docs: explain conflict between C0209 and W1203 - #10680

Merged
Pierre-Sassoulas merged 4 commits into
pylint-dev:mainfrom
prerna0412:docs/fix-fstring-logging-conflict
May 18, 2026
Merged

Pierre-Sassoulas merged 4 commits into
pylint-dev:mainfrom
prerna0412:docs/fix-fstring-logging-conflict

Conversation

@prerna0412

@prerna0412 prerna0412 commented Oct 19, 2025 •

Copy link
Copy Markdown
Contributor

Type of Changes

Type
✓ 📜 Docs

Description

This adds documentation to clarify the conflict between the C0209 (consider-using-f-string) and W1203 (logging-fstring-interpolation) messages.

It explains why the conflict occurs and provides options to resolve it using message control in the pylintrc file.

Refs #5286

@Pierre-Sassoulas Pierre-Sassoulas added Documentation 📗 Skip news 🔇 This change does not require a changelog entry labels Oct 19, 2025

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this. I think it would make more sense to add this in a details.rst in the page specific to C0209 / W1203

@Pierre-Sassoulas Pierre-Sassoulas added the Waiting on author Indicate that maintainers are waiting for a message of the author label Nov 9, 2025
@github-actions

github-actions Bot commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

This PR needs take over because because it has been open 8 weeks with no activity.

@github-actions github-actions Bot added the Needs take over 🛎️ Orignal implementer went away but the code could be salvaged. label Jan 5, 2026
@Pierre-Sassoulas Pierre-Sassoulas removed Waiting on author Indicate that maintainers are waiting for a message of the author Needs take over 🛎️ Orignal implementer went away but the code could be salvaged. labels May 18, 2026
@Pierre-Sassoulas Pierre-Sassoulas self-assigned this May 18, 2026
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.1.0 milestone May 18, 2026
@Pierre-Sassoulas
Pierre-Sassoulas force-pushed the docs/fix-fstring-logging-conflict branch from be8a956 to 6c6197a Compare May 18, 2026 07:48
Per review on pylint-dev#10680: rather than a new section in message_control.rst,
the conflict belongs in the details.rst of each message. Also recommends
lazy parameter passing as the canonical fix and links pylint-dev#5286.

Refs pylint-dev#5286
@Pierre-Sassoulas
Pierre-Sassoulas force-pushed the docs/fix-fstring-logging-conflict branch from 6c6197a to bafd79b Compare May 18, 2026 07:54
f-strings stay the default outside logging (per pylint-dev#5286 discussion); only
inside logging calls is the parameter-passing form preferred. Mention
the real motivation — skipping formatting when the record is filtered
out, useful for arguments with an expensive ``__str__``/``__repr__``.

Refs pylint-dev#5286

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for documenting pylint :)

@Pierre-Sassoulas
Pierre-Sassoulas enabled auto-merge (squash) May 18, 2026 08:51
@codecov

codecov Bot commented May 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.22%. Comparing base (628f3a7) to head (e379c37).
⚠️ Report is 179 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #10680      +/-   ##
==========================================
+ Coverage   96.21%   96.22%   +0.01%     
==========================================
  Files         178      178              
  Lines       19693    19699       +6     
==========================================
+ Hits        18948    18956       +8     
+ Misses        745      743       -2     

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Pierre-Sassoulas
Pierre-Sassoulas merged commit 0e9a3fc into pylint-dev:main May 18, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation 📗 Skip news 🔇 This change does not require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants