Add codespell to pre-commit and fix existing typos #5761
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 308 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5761"
general
weight: 0.35
maxwbuckley
Description
Adds codespell to pre-commit and fixes the typos it finds across the repo.
codespell already runs in pre-commit in cuML, RAFT, cuVS, RMM and cuDF. This PR uses the same hook (
v2.4.1) and the same[tool.codespell]settings inpyproject.toml, so cuGraph matches the rest of RAPIDS. The only additions are:https?://\S+inignore-regex, so URLs are never "fixed". For example, it would otherwise break the.../betweeness.htmllink in the centrality notebooks.CHANGELOG.mdand vendored code:thirdparty/is already excluded globally, andcpp/tests/utilities/cxxopts.hppis excluded here.What changed
Most fixes (about 230) are in comments, docstrings, READMEs, notebook markdown and the issue templates. The rest change text that users or developers see at runtime, or a local name. None of them change behavior:
CUGRAPH_EXPECTS):-
eigenvector_centrality_impl.cuh: "postive" → "positive"-
sampling_post_processing_impl.cuh: "Invaild" → "Invalid"-
coarsen_graph_impl.cuh: "aguments" → "arguments" (the message is also reflowed onto separate lines)-
c_api/test_utils.cpp,c_api/mg_test_utils.cpp: "diferent" → "different" in an assertion message-
components/mis_test.cu,components/mg_mis_test.cu: the out-of-range vertex message-
utilities/base_fixture.hpp: the--perfoption help, "enalbe" → "enable"-
mg_utils/run-dask-process.sh: the--tcpusage text and the "configuration" log lines-
mg_utils/wait_for_workers.py: the--helptext, "Initiliaze" → "Initialize"bug_report.ymlandfeature_request.ymlcandiate→candidateinapprox_weighted_matching_impl.cuhNo public API, parameter or identifier names changed. Copyright years were bumped by
verify-copyright.pre-commit run --all-filespasses.Checklist
🤖 Generated with Claude Code