Repository navigation
Fix Ruff ISC004 string concatenations - #471
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change reformats multiline test strings and adds one trailing comma in ChangesTest Formatting Updates
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This PR makes localized test-source formatting and string-separation fixes without changing production behavior or dependencies; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Nice! Please upgrade ruff in .pre-commit-config.yaml so the pull request tests itself. |
|
Done - I updated |
Follow-up to #460, where @cclauss asked for a separate PR fixing the 12 issues exposed by Ruff 0.16.1.
This fixes the code and, per maintainer follow-up, upgrades the pre-commit Ruff hook to v0.16.1 so the PR tests the newly enforced rule itself:
testElseOnSameLineAsClosingBraces, where the empty string is intended to be a separate source line rather than concatenated with" else {"astral-sh/ruff-pre-commitfrom v0.15.20 to v0.16.1Validation before the hook bump:
uvx ruff==0.16.1 check cpplint_unittest.py --select ISC004uvx ruff==0.16.1 check .The updated pre-commit configuration now lets CI validate the same Ruff 0.16.1 behavior directly.