Repository navigation
Read the Six Remaining Layouts the Sentence-Length Check Misread - #2872
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
There was a problem hiding this comment.
🔵 Needs a closer look
Star-only block-comment gaps and quote-only docstrings remain mishandled.
0 open findings
What changed in this PR
Updates the prose sentence-length parser to handle six remaining docstring and comment layouts, with regression tests.
Changes:
- Refines NumPy and docstring margin detection.
- Handles punctuation and indentation edge cases.
- Adds regression coverage for affected layouts.
| File | Reviewed changes |
|---|---|
tests/test_prose_lint.py |
Adds regression tests for the six layouts. |
.github/actions/prose-gate/prose_lint.py |
Updates sentence-layout parsing logic. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Copilot's headline says star-only block-comment gaps and quote-only docstrings remain mishandled, but names no layout and opens no thread. Checked on this head with constructed files: a star-only gap before an over-cap run is counted ( |
…ts, and PurpleAir Directories to Main (#2874) - #2871 corrects the audit comment on a section named on a non-Markdown file - #2872 reads the six remaining layouts the sentence-length check misread - #2873 declares the PurpleAir integration's Python directories and ticks its gate adoption Closes #2868 Closes #2865 Closes #2848 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fixes #2865
Per item, every one fixed, each with a test that fails with its fix reverted:
#or//marker is).Known accepted edge: a colon summary whose only body is one deep code line carrying the closing quotes now reads that line as prose, since nothing else sets the margin.
No change to the sentence-length cap or any other check.
🤖 Generated with Claude Code