Skip to content

Chore | Drop the F541 ignore now that #333 is merged - #384

Merged
diego-ojeda-binbash merged 1 commit into
masterfrom
chore/drop-f541-ignore
Nov 19, 2026
Merged

diego-ojeda-binbash merged 1 commit into
masterfrom
chore/drop-f541-ignore

Conversation

@diego-ojeda-binbash

@diego-ojeda-binbash diego-ojeda-binbash commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What?

  • pyproject.toml: remove the temporary F541 per-file ignore for leverage/_backend_config.py, and its TODO.
  • leverage/_backend_config.py: the 11 f-strings without placeholders become plain strings (ruff autofix). The {{ }} escapes in the example config.tf message become { }.

Why?

The ignore was added in #353 so that fixing these f-strings wouldn't conflict with #333, which touched the same file. #333 is merged.

Checks

  • ruff check . (0.17.5): all checks passed
  • The 7 ExitError messages are identical before and after (compared via the AST)
  • Unit tests: 336 passed
  • black --check: unchanged

References

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Completed minor maintenance to configuration error handling and code-quality checks. Error messages and handling remain unchanged, and there are no changes to user-facing behavior.

The ignore kept these f-strings from conflicting with #333. Ruff's autofix
turns the 11 placeholder-free f-strings in _backend_config.py into plain
strings, unescaping {{ }}; the 7 error messages are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added maintenance Chores: CI, tooling, refactors without user-facing changes patch labels Nov 19, 2026
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The backend configuration error messages no longer use redundant f-string prefixes. The per-file Ruff F541 ignore for _backend_config.py was removed. Message text and error handling remain unchanged.

Changes

Backend configuration strings

Layer / File(s) Summary
Remove redundant f-string prefixes
leverage/_backend_config.py, pyproject.toml
Removed redundant f-string prefixes from backend configuration messages. Removed the per-file Ruff F541 ignore for _backend_config.py.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Possibly related issues

Possibly related PRs

  • binbashar/leverage#333: This PR changes backend handling in the same file, and PR #384 removes the temporary F541 ignore after that PR merged.

Suggested reviewers: angelofenoglio

Merge Risk: Minimal · up to bebf4

This is a lint cleanup of backend configuration error messages with no intended change in behavior. The visible evidence shows no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: removing the F541 ignore from pyproject.toml now that #333 is merged. The raw summary confirms the ignore entry was removed and the f-string prefixes in leverage/_back…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: removing the F541 ignore from pyproject.toml now that #333 is merged. The raw summary confirms the ignore entry was removed and the f-string prefixes in leverage/_backend_config.py were dropped. The title's 'Chore |' prefix is a conventional-commit style label and does not hurt clarity. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks each string with care
No extra f-prefix lingers there
Ruff now checks the file anew
The error text stays just as true
I nibble greens and hop away

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 30659e0e-d6b2-490e-bd1f-8d0c47a27ee7
Commits

Reviewing files that changed from the base of the PR and between 86d9966 and bebf404.

Files selected for processing: 2

  • leverage/_backend_config.py
  • pyproject.toml
Files with no reviewable changes: 1

  • pyproject.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 44631955571

Coverage remained the same at 78.088%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: 1 uncovered change across 1 file (0 of 1 lines covered, 0.0%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
leverage/_backend_config.py 1 0 0.0%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4142
Covered Lines: 3350
Line Coverage: 80.88%
Relevant Branches: 1088
Covered Branches: 734
Branch Coverage: 67.46%
Branches in Coverage %: Yes
Coverage Strength: 0.81 hits per line

💛 - Coveralls

@diego-ojeda-binbash
diego-ojeda-binbash merged commit 2d36686 into master Nov 19, 2026
28 checks passed
@diego-ojeda-binbash
diego-ojeda-binbash deleted the chore/drop-f541-ignore branch November 19, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Chores: CI, tooling, refactors without user-facing changes patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants