Skip to content

Promote the Markdown Reader Known Limits and File-Naming Dot Scope to Main - #3272

Merged
ptr727 merged 2 commits into
mainfrom
develop
Oct 20, 2026
Merged

ptr727 merged 2 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Summary

Promotes two pull requests from develop, both from this round.

  • Pin pr_review.py's Markdown Reader Gaps as Known Limits #3270: pr_review.py's Markdown readers record where they still differ from GitHub's renderer as known limits, with notes in the CodeSpans and unrecognized_in docstrings. Tests pin each case: a paragraph end read from its line alone, a top-level setext underline, a span after an even backslash run, a backtick in a link's destination or title, a heading's indent, and the str.splitlines separators GitHub does not split on.
  • Name Dotfiles and Dotted Names Out of the File-Naming Check's Scope #3271: the file-naming check's AUDIT.md bullet, filenaming.scripts assert, and docstring say that a name with a dot and none of the listed extensions is not judged. A selftest case pins each side of that boundary.

Closes #3240
Closes #3265
Closes #3263
Closes #3260
Closes #3259
Closes #3268

🤖 Generated with Claude Code

ptr727 and others added 2 commits October 20, 2026 09:58
…3271)

## Summary

This carries out the maintainer's answer on #3268 (choice 1). The
file-naming check's behavior is unchanged. What changes is that
`AUDIT.md`'s `file-naming` bullet, the `filenaming.scripts` assert, and
`file_naming_findings`' docstring now say which names the check does not
judge.

- The text after a name's last dot is its extension, matched whatever
its case.
- A name whose extension is none of the listed ones is not judged,
whatever its mode. An executable dotfile with no listed extension, such
as `.Hidden_Hook`, and a dotted name such as `Run_Me.v2` go unjudged.
- Two selftest cases pin both sides of the boundary. These names are not
judged and not read, while a dotfile with a listed extension
(`bin/.Hook_Run.sh`, `bin/.lint.py`) is judged on its stem. A mutation
that skips every leading-dot name fails the second case.

#3268 closes through the promotion pull request.

## Local review

Two recorded `agent-skill` passes, with 6 findings and then 0. All six
were fixed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
## Summary

The maintainer chose to close #3240's class as documented, pinned limits
rather than build a container model. The same call covers the four small
reader follow-ups #3265, #3263, #3260, and #3259, none of whose shapes
any reviewer body has carried.

- `CodeSpans`' docstring names where its reading differs from GitHub's:
a paragraph end read from its line alone, a top-level setext underline,
a backtick run after an even backslash run, and a backtick inside an
inline link's destination or title.
- `unrecognized_in`'s docstring names the `str.splitlines` separators
GitHub does not split on, and the indent `MARKDOWN_HEADING` and
`HEADING` accept before a heading.
- Three tests pin each case at its current reading. A failure means the
limit moved and its note goes with it.

The notes are docstrings rather than `#` comments, since the prose
gate's `comment-added` rule refuses new comment lines.

These issues close through the promotion pull request: #3240, #3265,
#3263, #3260, #3259.

## Local review

Three recorded `agent-skill` passes, with 6, 3, and 1 findings. The
first two rounds were fixed. One finding stayed open once the two-round
edit budget was spent. Copilot raised it as well, and it is now fixed in
11b893e, with a fourth recorded pass finding 0:

- `introduced`: `scripts/pr_review.py` `unrecognized_in` docstring says
`str.splitlines` "ends a line at each other separator `QUOTED_CHAR`
names". `QUOTED_CHAR`'s class also names `\r`, which GitHub does end a
line at, so "other" should say other than the newline and the carriage
return. The test docstring already states it that way.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 20, 2026 17:04
@coderabbitai

coderabbitai Bot commented Oct 20, 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: d4a17352-5f1a-44ed-a4b7-ef0dbac28458
  • 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.

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.

🟢 Approval recommended

All reviewed changes are documented and covered by regression tests, with no unresolved issues.

No open issues 🎉

What changed in this PR

Promotes documented Markdown-reader limitations and clarifies dotted-name file-naming scope without changing production behavior.

Changes:

  • Adds regression tests for Markdown parsing boundaries.
  • Documents file-naming exclusions for dotted names.
  • Aligns audit specifications, guidance, and docstrings.
File Description
tests/​test_pr_review.py Pins Markdown-reader limits.
spec/​project-types.json Defines dotted-name scope.
spec/​audit.py Documents and tests naming behavior.
scripts/​pr_review.py Records Markdown-reader limitations.
AUDIT.md Updates file-naming guidance.

Review effort: Lite

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.49%. Comparing base (918e42c) to head (53bc127).
⚠️ Report is 406 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3272   +/-   ##
=======================================
  Coverage   65.49%   65.49%           
=======================================
  Files          17       17           
  Lines       10011    10011           
=======================================
  Hits         6557     6557           
  Misses       3454     3454           
Flag Coverage Δ
python-3.13 65.49% <ø> (ø)

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.

@ptr727
ptr727 merged commit 01495c0 into main Oct 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants