Skip to content

docs: fix factual errors, inconsistencies, and typos in the guide#800

Merged
henryiii merged 4 commits into
mainfrom
fix-docs-review
Jun 10, 2026
Merged

docs: fix factual errors, inconsistencies, and typos in the guide#800
henryiii merged 4 commits into
mainfrom
fix-docs-review

Conversation

@henryiii

@henryiii henryiii commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Ran Opus on the guide. It actually ran in one go (the other two sites I did it fanned out), so maybe I should have tried Fable.

Also added CLAUDE.md to the gitignore (it should just be a symlink to AGENTS.md, Claude Code is the only harness not to follow the standard).

🤖 AI text below 🤖

Review of docs/pages/ turned up a batch of concrete errors. Split into two commits: factual/code fixes first, then typos/grammar.

Commit 1 — factual / code errors & inconsistencies

These would actively mislead a reader who copied the snippets:

  • packaging tutorial: wrong snell(np.pi/4, 1.00, 1.33) output (1.22395762401041860.5605584137424605, the value the other two pages already use)
  • pytest guide: inverted skipif condition; --strict-markers described as checking fixtures (it's markers); missing assert in the approx example
  • packaging-simple: requires-python upper-cap check is PP004, not PY004 (PY004 is "has docs folder")
  • packaging-compiled: "pure Python project" link pointed at itself instead of packaging-simple
  • gha-basic: step-output reference missing .outputs.
  • gha-wheels: mis-indented pull_request trigger (was nested under release:); test-extrastest-groups
  • tasks: broken hatch URL (hatch.pypi.iohatch.pypa.io)
  • style: wrong flake8-print URL; stray ) in the Ruff v2 badge
  • docs: corner example link pointed at astropy
  • data-files: unified the peak_spacings directory name (was drifting between peak_spacing/peakspacing)
  • test tutorial: aligned dir tree + pytest output with the snell example; dropped an incorrect Arrange-Act-Assert reference

Commit 2 — typos & grammar

Broken intro sentence on the home page, "on for"→"one for", "you you use", a dangling "either with", an incomplete sentence in gha-pure, "snipits"→"snippets", a reframed (self-contradictory) "Popular frameworks" note, stale linkcheck-handler prose, missing self on Protocol methods, importlib.metadata/tomli_w/tzdata fixes, autospec=True, numpy ndarray, and a malformed {toctree} fence.

rumdl and prettier pass on the changed files.

Left untouched: the forward-looking pytest 9+ config block ([tool.pytest] with strict = true) — speculative future syntax rather than a clear error.


📚 Documentation preview 📚: https://scientific-python-cookie--800.org.readthedocs.build/

henryiii and others added 4 commits June 9, 2026 20:23
- packaging tutorial: fix wrong Snell's law output value
- pytest guide: fix inverted skipif condition, strict-markers
  describes markers not fixtures, add missing assert in approx example
- packaging-simple: requires-python upper-cap check is PP004, not PY004
- packaging-compiled: "pure Python project" link pointed at itself
- gha-basic: step output reference missing .outputs.
- gha-wheels: fix mis-indented pull_request trigger; test-groups not
  test-extras
- tasks: fix broken hatch URL (pypa, not pypi)
- style: fix flake8-print URL and stray ) in Ruff v2 badge
- docs: fix corner example link (pointed at astropy)
- data-files: unify peak_spacings directory name
- test tutorial: align dir tree and pytest output with snell example,
  drop incorrect Arrange-Act-Assert reference

Assisted-by: ClaudeCode:claude-opus-4.8
- index: repair broken intro sentence
- guides/index: "on for" -> "one for"
- packaging-simple: "you you use"
- coverage: dangling "either with"
- gha-pure: complete trailing sentence about publish guard
- docs: "snipits" -> "snippets", reframe "Popular frameworks" note,
  fix stale linkcheck-handler prose
- mypy: add self to Protocol/impl methods
- backports: importlib.metadata, tomli_w, tzdata
- design: "One alternative is to replace"
- testing: venerable, autospec=True, numpy ndarray
- tutorials/docs: fix {toctree} fence and "interoperate"

Assisted-by: ClaudeCode:claude-opus-4.8
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii henryiii marked this pull request as ready for review June 10, 2026 01:09
@henryiii henryiii merged commit 1c716bb into main Jun 10, 2026
7 checks passed
@henryiii henryiii deleted the fix-docs-review branch June 10, 2026 01:11
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.

1 participant