Skip to content

f-strings without placeholder are plain strings - #60

Merged
Paebbels merged 1 commit into
devfrom
claude/needless-fstrings
Oct 25, 2026
Merged

Paebbels merged 1 commit into
devfrom
claude/needless-fstrings

Conversation

@pyedaa-claude

@pyedaa-claude pyedaa-claude Bot commented Oct 18, 2026

Copy link
Copy Markdown

2 f-strings had no placeholder (pyflakes F541), so their f prefix did nothing: f"…" becomes "…". Every string keeps its value - escaped braces {{ / }} in such a string become { / }, implicit concatenations are handled as one string.

Others

  • 1 files: 0 package files, 0 test files, 1 in doc/. Only string prefixes (and the brace escapes) change; the result is checked to parse.

Related Issues and Pull-Requests

  • One pull-request per repository of the family (rule: an f-string only with a placeholder).

2 f-strings had no placeholder, so their 'f' prefix did nothing; 'f"…"' becomes '"…"', escaped braces '{{'/'}}'
become '{'/'}'. Every string keeps its value. Fixed with CheckNeedlessFStrings (pyflakes F541).

Co-Authored-By: Patrick Lehmann <Paebbels@gmail.com>
@pyedaa-claude
pyedaa-claude Bot requested a review from Paebbels as a code owner October 18, 2026 05:17
@codacy-production

codacy-production Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

🟢 Coverage ∅ diff coverage · +0.00% coverage variation

Metric Results
Coverage variation ✅ +0.00% coverage variation (-1.00%)
Diff coverage ✅ ∅ diff coverage

View coverage diff in Codacy

Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (d2127cc) Report Missing Report Missing Report Missing
Head commit (71a1637) 71 (+0) 45 (+0) 63.38% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#60) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.97%. Comparing base (d2127cc) to head (71a1637).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev      #60   +/-   ##
=======================================
  Coverage   61.97%   61.97%           
=======================================
  Files           1        1           
  Lines          71       71           
  Branches       13       13           
=======================================
  Hits           44       44           
  Misses         26       26           
  Partials        1        1           
Flag Coverage Δ
unittests 61.97% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Paebbels
Paebbels merged commit f55ba11 into dev Oct 25, 2026
66 of 68 checks passed
@Paebbels
Paebbels deleted the claude/needless-fstrings branch October 25, 2026 00:10
@pyedaa-claude pyedaa-claude Bot mentioned this pull request Oct 25, 2026

This branch had an error being deployed

1 failed deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants