Skip to content

docs: fix typos and broken markup in docstrings and comments - #89

Merged
paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:docs-typos-markup
Nov 23, 2026
Merged

paulmueller merged 2 commits into
DC-analysis:mainfrom
paulmueller-agent:docs-typos-markup

Conversation

@paulmueller-agent

Copy link
Copy Markdown
Contributor

Second documentation PR (follows #88): typos and broken RST markup in docstrings and comments. No code changes, except the wording of two error messages.

Typos

  • User-facing error messages:
    • "Please provice 'device' and 'backend'" → "provide" (torch_model.py)
    • "Please specify either image_cor …" → "image_corr" (tex_all.py)
  • Docstrings and comments: "maks", "dicitonary", "containg", "evtens/image" (3×), "Nnote", "consiered", "Not that", "pickable" (2×), "dequeue", "KeyboardInterupt", "wer are", "Comput labels", "where converted", "since is used compression", "applicability applicability", plus several grammar fixes ("Each entries consist", "the number states", "such libraries", "work on … on", …).

Markup (rendered incorrectly in the API docs)

  • dcnum/__init__.py: no blank line between the summary and "MIT License". The package summary on the API page ran straight into the whole license text.
  • Lists without a preceding blank line rendered as one paragraph (LazyLoader, HDF5Data index_mapping, get_mapping_indices). The HDF5Data list also gained "list or np.ndarray".
  • The LazyLoader example used sibling==__name__ (a comparison) instead of sibling=__name__.
  • The Haralick feature list ("- 1. tex_asm") rendered as a bullet list with nested enumerations; docutils warned about it.
  • "Usage:" in reserve_slot_for_task rendered as a block quote → "Usage::".
  • Single backticks render as italics (no default_role is set); they are now double backticks where code was meant. Also :func: was used for a method, :math: was missing for R, and DCNumPipelineJob.validate had a trailing colon in Raises and True: as a return type.

Docstrings that contradict the code are fixed in the following PRs.

Checks

  • The docs build (nitpicky) has no new warnings.
  • The test suite passes, except the 3 torch tests (torch is not installed locally; they fail on main too).
  • flake8 is clean.

🤖 Generated with Claude Code

Paul Müller and others added 2 commits November 23, 2026 16:03
- typos in docstrings, comments, and two error messages ("provice",
  "`image_cor`")
- the package docstring ran into the license text (missing blank line)
- lists without a preceding blank line rendered inline (LazyLoader,
  HDF5Data index_mapping, get_mapping_indices); the LazyLoader example
  used `sibling==__name__` instead of `sibling=__name__`
- the texture feature list rendered as a nested list
- "Usage:" in reserve_slot_for_task rendered as a block quote
- single backticks (italics) where code was meant, :func: for a
  method, malformed Raises/Returns entries in DCNumPipelineJob.validate

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paulmueller
paulmueller merged commit a0e7f24 into DC-analysis:main Nov 23, 2026
5 of 6 checks passed
@codecov

codecov Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.26%. Comparing base (6626af0) to head (8dc625e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dcnum/feat/feat_texture/tex_all.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   88.22%   88.26%   +0.04%     
==========================================
  Files          63       63              
  Lines        4543     4543              
==========================================
+ Hits         4008     4010       +2     
+ Misses        535      533       -2     

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

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