Skip to content

Read the Remaining Layouts the Sentence-Length Check Misread - #2863

Merged
ptr727 merged 6 commits into
developfrom
feature/prose-2843
Oct 12, 2026
Merged

ptr727 merged 6 commits into
developfrom
feature/prose-2843

Conversation

@ptr727

@ptr727 ptr727 commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

Fixes #2843.

Fixes the layouts the sentence-length check still misread: a docstring body deeper than its quotes, a non-prose line inside an indented comment run, /* */ continuation indents, Google free-text sections (Note, Warning, See Also, Todo and the rest), the NumPy head versus prose test, and a bare comment marker gap outside Python.

Item 6 (the bare marker gap) needed a code change: non-Python files did not treat a bare marker line after a colon line as a gap.

Leftovers accepted and are listed in #2865.

🤖 Generated with Claude Code

ptr727 and others added 5 commits October 11, 2026 16:16
Measure a docstring body from its own margin, keep a non-prose line inside a
comment command run, give block comment continuations an indent, read Google
free-text sections as prose, tell a NumPy head from prose by its layout, and
read a bare comment marker line as a gap outside Python.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Anchor a bare continuation to the opener column, stop a NumPy head lookahead
at a blank line, and let a closing quote count toward the docstring margin
only at or past the quote column.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Measure the first docstring line against the smaller of the quote column and
the body margin, and cut a block comment continuation only at whitespace.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 12, 2026 00:08
@coderabbitai

coderabbitai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2591c6d4-3d29-4e9f-9e3e-34527201a160

  • 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

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.94%. Comparing base (ebff68d) to head (965520f).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2863      +/-   ##
===========================================
- Coverage    60.49%   59.94%   -0.56%     
===========================================
  Files           16       16              
  Lines         8534     8624      +90     
===========================================
+ Hits          5163     5170       +7     
- Misses        3371     3454      +83     
Flag Coverage Δ
python-3.13 59.94% <ø> (-0.56%) ⬇️

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.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Two moderate findings remain for aligned docstring closers and the Deprecated Google section.

1 open finding
What changed in this PR

This pull request improves sentence-length parsing for docstrings and comments, with regression coverage for remaining layouts.

Changes:

  • Handles deeper docstrings, Google/NumPy sections, and comment indentation.
  • Supports non-Python marker gaps.
  • Adds focused regression tests.
File Summary
.github/​actions/​prose-gate/​prose_lint.py Updates prose extraction and layout classification.
tests/​test_prose_lint.py Adds regression coverage for supported layouts.

🧠 Review effort: Lite


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727

ptr727 commented Oct 12, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head 965520ff11da4b83aa797f8315c4a19084bb62a4, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit 22bf57c into develop Oct 12, 2026
13 checks passed
@ptr727
ptr727 deleted the feature/prose-2843 branch October 12, 2026 00:29
ptr727 added a commit that referenced this pull request Oct 12, 2026
…urrency Audit to Main (#2866)

## Summary

Promotes [#2857](#2857),
[#2860](#2860),
[#2858](#2858),
[#2859](#2859), and
[#2863](#2863) to main.

- Over-cap config comments are split and the scenario table gains S14.
- The narrowed-scan diff-floor test no longer depends on the working
directory.
- The EditorConfig lint task image comes from the registry CI uses.
- The audit flags a publisher or merge-bot concurrency group that drifts
from WORKFLOW.md.
- `prose_lint.py`'s opt-in `sentence-length` check reads the remaining
layouts it misread.

Closes #2845
Closes #2830
Closes #2844
Closes #2856
Closes #2843

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants