Conversation
Support `prek sample-config --format toml`
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## prektoml #1547 +/- ##
============================================
- Coverage 91.61% 91.58% -0.04%
============================================
Files 91 91
Lines 17981 18078 +97
============================================
+ Hits 16474 16557 +83
- Misses 1507 1521 +14 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds auto-update support for TOML-based prek configuration (prek.toml) by updating revisions in TOML configs and expanding the integration test suite to cover TOML update scenarios.
Changes:
- Detect
.tomlconfig files duringauto-updateand update[[repos]].revusingtoml_edit. - Preserve/add/remove
# frozen: ...markers for TOML configs when--freezeis used. - Add integration tests covering basic TOML updates and TOML freeze behavior (including existing comments).
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
crates/prek/src/cli/auto_update.rs |
Adds TOML-aware config rewriting via toml_edit, refactors YAML rewrite into a helper. |
crates/prek/tests/auto_update.rs |
Adds TOML-focused auto-update integration tests (basic + freeze + comment cases). |
crates/prek/Cargo.toml |
Adds toml_edit dependency to the prek crate. |
Cargo.toml |
Adds workspace dependency pin for toml_edit. |
Cargo.lock |
Locks new toml_edit dependency and transitive changes. |
📦 Cargo Bloat ComparisonBinary size change: +0.43% (23.5 MiB → 23.6 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
036518d to
29c9db2
Compare
29c9db2 to
cbf329b
Compare
j178
added a commit
that referenced
this pull request
Feb 3, 2026
j178
added a commit
that referenced
this pull request
Feb 4, 2026
j178
added a commit
that referenced
this pull request
Feb 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.