You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Chores
Removed an unnecessary TOML parsing dependency from the development tooling.
Bug Fixes
TOML configuration continues to be parsed with Python’s built-in support, with existing fallback and error handling preserved.
The clang-tidy script now uses Python’s standard-library tomllib to parse TOML configuration. The tomli dependency was removed from the pre-commit hook and clang-tidy dependency declarations. The script’s copyright notice was also updated.
Changes: TOML Parser and Dependency Updates
Layer / File(s)
Summary
Use tomllib and remove tomli cpp/scripts/run-clang-tidy.py, .pre-commit-config.yaml, conda/environments/clang_tidy_cuda-129_arch-x86_64.yaml, conda/environments/clang_tidy_cuda-134_arch-x86_64.yaml, dependencies.yaml
The script uses tomllib and retains its missing-key fallback and TOML decoding error handling. The tomli declarations were removed. The copyright notice was updated.
This change switches TOML parsing in the clang-tidy script to Python's standard library and removes the now-unneeded tomli dependency. No concrete risk was found. The project requires Python 3.12 or newer, which includes tomllib.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title 'drop tomli dependency' matches the changeset. The PR removes tomli from the pre-commit codespell hook, the clang-tidy conda environments, and the dependencies.yaml clang_tidy group. run-cla…
Description check
The description says the project's minimum Python is 3.12, so tomllib from the standard library can replace the third-party tomli package. It links issue #352. This matches the changeset, which remove…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title 'drop tomli dependency' matches the changeset. The PR removes tomli from the pre-commit codespell hook, the clang-tidy conda environments, and the dependencies.yaml clang_tidy group. run-clang-tidy.py switches to the standard-library tomllib. The title is short, specific, and names the primary change.
Full details: Description check
Explanation
The description says the project's minimum Python is 3.12, so tomllib from the standard library can replace the third-party tomli package. It links issue #352. This matches the changeset, which removes tomli usage and switches run-clang-tidy.py to tomllib.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 librarytomli.