Skip to content

CI: Enable codespell for Markdown and HTML files and fix typos - #8029

Merged
echoix merged 3 commits into
OSGeo:mainfrom
echoix:claude/typo-fixes-g3h3w1
Oct 9, 2026
Merged

echoix merged 3 commits into
OSGeo:mainfrom
echoix:claude/typo-fixes-g3h3w1

Conversation

@echoix

@echoix echoix commented Oct 7, 2026

Copy link
Copy Markdown
Member

Typos: some were collected some time ago, and then the search completed to remove the exclusion for html and md files.


Description

Stop excluding markdown and html from the codespell hook in .pre-commit-config.yaml and fix the typos it reports (for example build-in, overlayed, co-ordinate, re-use, neigbors, agressive) in the tool and general documentation. Also fix typos in a DTD file, a LaTeX document, a Python comment, a C++ header comment, a README and the documentation HTML header template.

Terms codespell flags but that are intentional (ETo, IHS, ALOG, a cited author's name and similar) are added to ignore-words-list in pyproject.toml.

The v.generalize option betweeness_thresh is a misspelling of betweenness. It is a user-facing option name (and an identifier in the C code), so it is deliberately left unchanged because renaming it is a larger change. Only the surrounding prose is corrected.

The branch is squashed into two commits: code, comment and template typos, then the codespell configuration with the Markdown and HTML fixes.

Motivation and context

Markdown and HTML files were not spell-checked, so typos had accumulated in the documentation.

How has this been tested?

codespell (v2.4.2) reports nothing for all tracked .md and .html files.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • PR title provides summary of the changes and starts with one of the
    pre-defined prefixes
  • My code follows the code style
    of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

AI assistance (Claude Code) was used to find and fix the typos.

echoix added 3 commits October 4, 2026 18:03
Fix spelling mistakes in a DTD file, a LaTeX document, a Python comment,
a C++ header comment, a README and the documentation HTML header
template.

AI assistance (Claude Code) was used to find the typos.
Stop excluding the markdown and html file types from codespell in
pre-commit and fix the typos it reports in the tool and general
documentation. Add the terms codespell flagged but that are intentional
(evapotranspiration ETo, IHS color model, ALOG, a cited author's name and
others) to the ignore list.

The v.generalize option name betweeness_thresh is a misspelling of
betweenness, but it is a user-facing option name, so it is left unchanged
here, as renaming it is a larger change. Only the prose around it is
corrected.

AI assistance (Claude Code) was used to find the typos.
@github-actions github-actions Bot added windows Microsoft Windows specific GUI wxGUI related CI Continuous integration vector Related to vector data processing raster Related to raster data processing Python Related code is in Python HTML Related code is in HTML libraries module docs markdown Related to markdown, markdown files general imagery tests Related to Test Suite misc labels Oct 7, 2026
@echoix
echoix merged commit 93a6e41 into OSGeo:main Oct 9, 2026
26 checks passed
@github-actions github-actions Bot added this to the 8.6.0 milestone Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration docs general GUI wxGUI related HTML Related code is in HTML imagery libraries markdown Related to markdown, markdown files misc module Python Related code is in Python raster Related to raster data processing tests Related to Test Suite vector Related to vector data processing windows Microsoft Windows specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant