Skip to content

Run codespell across the codebase. - #1251

Merged
jtv merged 14 commits into
masterfrom
codespell
Aug 3, 2026
Merged

Run codespell across the codebase.#1251
jtv merged 14 commits into
masterfrom
codespell

Conversation

@jtv

@jtv jtv commented Aug 1, 2026

Copy link
Copy Markdown
Owner

Handy tool that finds typos. Amazing: this seems to be what LLMs are best at, and this tool is much better and much faster at it.

I might make this part of the build, except there's a few places where it insists on complaining about things that aren't typos and aren't appropriate for a suppression in the config. In theory I should be able to write an inline comment to suppress these, but... that doesn't seem to work.

jtv added 3 commits August 1, 2026 19:25
There's an awful lot of these.  And no LLM found them.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a codespell configuration and applies typo/spelling fixes across libpqxx source, tests, scripts, and documentation to improve textual quality and reduce false positives in future spellchecking.

Changes:

  • Add a .codespellrc with skip paths and an ignore-word list.
  • Fix spelling/wording typos across scripts, headers, sources, tests, docs, and NEWS.
  • Add a codespell:ignore-next-line suppression for a test string that contains words flagged by spellcheckers.

Reviewed changes

Copilot reviewed 32 out of 33 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/lint.sh Fix typo in error/help text.
tools/generate_cxx_checks.py Spelling fixes in explanatory comments.
test/test72.cxx Fix typo in test comment.
test/test26.cxx Fix typo in test comment.
test/test07.cxx Fix typo in test comment.
test/test_range.cxx Adjust spelling in invalid-input test data.
test/test_encodings.cxx Add codespell suppression for a test sentence.
test/test_array.cxx Fix typos in test comments.
test/helpers.hxx Fix typos in default failure descriptions.
src/time.cxx Fix typo in comment.
src/strconv.cxx Fix typo in comment.
src/pipeline.cxx Fix typo in comment.
src/connection.cxx Fix typo in comment.
NEWS Fix typos in release notes.
include/pqxx/zview.hxx Fix typo in doc comment.
include/pqxx/util.hxx Fix typo in doc comment.
include/pqxx/transaction_base.hxx Fix typos in API documentation.
include/pqxx/stream_to.hxx Fix typo in API documentation.
include/pqxx/stream_from.hxx Fix typo in API documentation.
include/pqxx/internal/stream_query.hxx Fix typo in internal doc comment.
include/pqxx/internal/sql_cursor.hxx Fix typo in internal doc comment.
include/pqxx/doc/streams.md Fix typo in documentation.
include/pqxx/doc/parameters.md Fix typo in documentation.
include/pqxx/doc/datatypes.md Fix typos in documentation.
include/pqxx/connection.hxx Fix typos in API documentation.
include/pqxx/blob.hxx Fix typo in API documentation.
examples/simple_queries.cxx Fix typo in example comment.
cxx_features.txt Fix typo in comment text.
configure.ac Fix typo in comment.
configure Fix typo in generated/configure script comment.
config-tests/README.md Fix typo in documentation.
BUILDING-configure.md Fix typo in build documentation.
.codespellrc Add codespell configuration (skip paths + ignore list).

Comment thread .codespellrc
Comment thread tools/generate_cxx_checks.py Outdated
Comment thread test/test_range.cxx
@jtv
jtv requested a review from Copilot August 2, 2026 17:23
@jtv
jtv marked this pull request as ready for review August 2, 2026 17:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 54 out of 55 changed files in this pull request and generated no new comments.

@jtv
jtv merged commit 2d0a8e6 into master Aug 3, 2026
64 checks passed
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