← Back to Pull requests

Add codespell to pre-commit and fix existing typos #5761

Closed
unknown closed this pull request without merging on Nov 30, 2026 21:39 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 00:09 UTC
Author

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 in pyproject.toml, so cuGraph matches the rest of RAPIDS. The only additions are:

  • https?://\S+ in ignore-regex, so URLs are never "fixed". For example, it would otherwise break the .../betweeness.html link in the centrality notebooks.

  • Exclusions for CHANGELOG.md and vendored code: thirdparty/ is already excluded globally, and cpp/tests/utilities/cxxopts.hpp is 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:

  • Error messages (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)
  • Test diagnostics:

  • - 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 --perf option help, "enalbe" → "enable"
  • Script output and CLI help:

  • - mg_utils/run-dask-process.sh: the --tcp usage text and the "configuration" log lines
    - mg_utils/wait_for_workers.py: the --help text, "Initiliaze" → "Initialize"
  • Issue templates: placeholder text in bug_report.yml and feature_request.yml

  • Notebook output: one plot label, "Occurences" → "Occurrences"

  • Local variable: candiate → candidate in approx_weighted_matching_impl.cuh
  • No public API, parameter or identifier names changed. Copyright years were bumped by verify-copyright.

    pre-commit run --all-files passes.

    Checklist


  • I am familiar with the Contributing Guidelines.

  • New or existing tests cover these changes. (No behaviour change; covered by the new pre-commit hook.)

  • The documentation is up to date with these changes.
  • 🤖 Generated with Claude Code

    Diff: 308 lines (+231 / -77) across 3 files Reviewer: maxwbuckley Review duration: 5610m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.4% · Safe to merge
    17.4%