Skip to content

docs: correct AGENTS.md note on which doctests actually run#181

Merged
derek73 merged 1 commit into
masterfrom
docs/fix-doctest-note
Jun 29, 2026
Merged

docs: correct AGENTS.md note on which doctests actually run#181
derek73 merged 1 commit into
masterfrom
docs/fix-doctest-note

Conversation

@derek73

@derek73 derek73 commented Jun 29, 2026

Copy link
Copy Markdown
Owner

Summary

The AGENTS.md gotcha claimed docs/usage.rst doctests run under uv run pytest (--doctest-modules). That's inaccurate: testpaths is tests + nameparser only and there's no --doctest-glob, so the .rst doctests in docs/ run under neither pytest nor CI (CI does sphinx-build -b html, not -b doctest). Following that note for verification gives false confidence.

Replaced it with an accurate description:

  • Docstring examples in nameparser/*.py do run under pytest.
  • .rst doctests must be verified manually (documents the exact doctest.testfile(..., NORMALIZE_WHITESPACE) command).
  • Flags the pre-existing customize.rst failures under -b doctest (CONSTANTS state leaks across examples with no per-example reset; non-deterministic SetManager repr).

Verification

The documented manual command runs as described.

🤖 Generated with Claude Code

The note claimed docs/usage.rst doctests run under 'uv run pytest', but
testpaths is tests+nameparser only and there is no --doctest-glob, so .rst
doctests run under neither pytest nor CI (CI does sphinx -b html, not
-b doctest). Document how to verify .rst examples manually and flag the
pre-existing customize.rst failures.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@derek73 derek73 self-assigned this Jun 29, 2026
@derek73 derek73 merged commit 518e965 into master Jun 29, 2026
8 checks passed
@derek73 derek73 added the docs Documentation fixes and updates label Jul 2, 2026
@derek73 derek73 deleted the docs/fix-doctest-note branch July 2, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation fixes and updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant