Skip to content

drop 'tomli' dependency - #3096

Open
jameslamb wants to merge 2 commits into
NVIDIA:mainfrom
jameslamb:drop-tomli
Open

jameslamb wants to merge 2 commits into
NVIDIA:mainfrom
jameslamb:drop-tomli

Conversation

@jameslamb

Copy link
Copy Markdown
Member

Contributes to rapidsai/build-planning#352

From Python 3.11 onwards, the Python standard library has TOML support via tomllib. The minimum supported python here is 3.12, so we can safely drop uses of the third-party library tomli.

@jameslamb
jameslamb requested a review from a team as a code owner November 20, 2026 15:16
@jameslamb jameslamb added the improvement Improves an existing functionality label Nov 20, 2026
@jameslamb
jameslamb requested a review from msarahan November 20, 2026 15:16
@jameslamb jameslamb added the non-breaking Introduces a non-breaking change label Nov 20, 2026
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: NVIDIA/cuvs
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 0897086
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: a216de2c-d377-4119-aa79-dae937df728d
Commits

Reviewing files that changed from the base of the PR and between 8601d2e and 946f976.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Chores
    • Streamlined the spelling-check setup by removing an unnecessary installation requirement. This maintenance update does not change any user-facing features or behavior.

The pre-commit configuration removes tomli from the codespell hook’s additional dependencies.

Changes: Codespell Configuration

Layer / File(s) Summary
Update codespell hook configuration
.pre-commit-config.yaml
The codespell hook no longer declares tomli as an additional dependency.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: cjnolet

Merge Risk: Minimal · previous review 8601d

This removes an unneeded tomli dependency from the codespell pre-commit hook, since Python 3.12 and later ship TOML support in the standard library. There is no runtime impact and the change is easy to revert, so it is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "drop 'tomli' dependency" matches the single change in the changeset: the codespell hook in .pre-commit-config.yaml no longer lists tomli as an additional dependency. It is short and specifi…
Description check Passed The description explains the reason for the change: Python 3.11 and later include TOML support through tomllib, and the minimum supported Python here is 3.12, so tomli can be dropped. It relates direc…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "drop 'tomli' dependency" matches the single change in the changeset: the codespell hook in .pre-commit-config.yaml no longer lists tomli as an additional dependency. It is short and specific, and it names the removed package. The PR objectives confirm the intent to remove tomli because the minimum supported Python is 3.12 and tomllib is in the standard library.

Full details: Description check

Explanation

The description explains the reason for the change: Python 3.11 and later include TOML support through tomllib, and the minimum supported Python here is 3.12, so tomli can be dropped. It relates directly to the removal of the tomli dependency in the changeset. It also links a tracking issue.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: NVIDIA/cuvs
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 9606988
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Enterprise
  • Run ID: 2467928b-4f26-493b-acd3-9486a8d8b5ad
Commits

Reviewing files that changed from the base of the PR and between 9606988 and 8601d2e.

Files selected for processing: 1

  • .pre-commit-config.yaml
Files with no reviewable changes: 1

  • .pre-commit-config.yaml

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.

@jameslamb jameslamb mentioned this pull request Nov 20, 2026
7 of 15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant