Skip to content

docs: fix typos in notebooks, docstrings and knowledgebase - #1150

Merged
drbenvincent merged 1 commit into
pymc6_and_pymcmarketing1_migrationfrom
docs/fix-typos-migration
Aug 8, 2026
Merged

docs: fix typos in notebooks, docstrings and knowledgebase#1150
drbenvincent merged 1 commit into
pymc6_and_pymcmarketing1_migrationfrom
docs/fix-typos-migration

Conversation

@anevolbap

Copy link
Copy Markdown
Collaborator

Fixes 38 typos across 17 files: notebook prose, two Python comments, the knowledgebase glossary and one docstring. No code behaviour changes.

Why codespell did not catch these

codespell runs in prek and in CI (the CI job converts notebooks to markdown first, so notebooks are covered), and it reports clean both before and after this change. Its dictionary only holds known misspelling pairs and none of these words are in it. I found them by running aspell over extracted prose and reviewing the words that occur only once or twice.

What changed

Spelling: engodgenous, endogeniety (3x, including glossary.rst), catgeorical, horsehoe, counterfailing, hyperparamers, crediblity, proxmity, relevent, prevalance, weigting, threhsold, treamtent, umeasured, approximtely, stochasticisty, empircal, determinents, additionlly, dummary, jusst, perior, dats, TWe, partialied, caual, tracebak.

Six doubled words: five "the the" and one "See See".

Three are not pure spelling and are worth a second look:

  • "in that it effects the causal path" to "affects", in the weak instruments notebook.
  • "Mastering'metrics" to "Mastering 'Metrics" in causal_written_resources.md, matching the title in references.bib.
  • notebook_to_markdown.py named its own whitelist file "codespeel-whitelist.txt" in its docstring.

Notebook edits

I edited the notebooks as raw text instead of reading and rewriting the JSON, because a JSON round-trip reformats two of them and would have buried the change in a large diff. Each replacement was checked to occur only inside cell sources and never in outputs, since base64 image blobs contain fragments like TWe and dats. No cells were re-executed, so the rendered docs change only in the prose.

Verification

  • 26 prek hooks pass, including codespell, notebook validation and the JSON check.
  • 39 notebooks parse and validate with nbformat.
  • test_outcome_falsification.py (29 passed) and the negd tests (27 passed), run in CausalPy-pymc6.

Found with aspell over extracted prose, then reviewed by hand. codespell runs in prek and in CI but reports clean, since its dictionary only holds known misspelling pairs and none of these are in it.

Spelling: engodgenous, endogeniety (3x), catgeorical, horsehoe, counterfailing, hyperparamers, crediblity, proxmity, relevent, prevalance, weigting, threhsold, treamtent, umeasured, approximtely, stochasticisty, empircal, determinents, additionlly, dummary, jusst, perior, dats, TWe, partialied, caual, tracebak.

Also six doubled words (five "the the", one "See See"), "it effects the causal path" to "affects", the book title "Mastering'metrics" to match references.bib, and the notebook_to_markdown docstring naming its own whitelist file "codespeel-whitelist.txt".

Notebooks were edited as raw text rather than via a JSON round-trip, which would have reformatted two of them. Each replacement was checked to occur only inside cell sources, never in outputs, since base64 image blobs contain fragments like TWe and dats.
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.11%. Comparing base (194343c) to head (95dd128).

Additional details and impacted files
@@                         Coverage Diff                         @@
##           pymc6_and_pymcmarketing1_migration    #1150   +/-   ##
===================================================================
  Coverage                               97.11%   97.11%           
===================================================================
  Files                                     122      122           
  Lines                                   21634    21634           
  Branches                                 1175     1175           
===================================================================
  Hits                                    21009    21009           
  Misses                                    414      414           
  Partials                                  211      211           

☔ 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.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 causalpy | 🛠️ Build #33910239 | 📁 Comparing 95dd128 against latest (7e23946)

  🔍 Preview build  

252 files changed · + 30 added · ± 200 modified · - 22 deleted

+ Added

± Modified

- Deleted

@drbenvincent
drbenvincent merged commit edd8782 into pymc6_and_pymcmarketing1_migration Aug 8, 2026
16 checks passed
@drbenvincent
drbenvincent deleted the docs/fix-typos-migration branch August 8, 2026 07:23
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