Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## prektoml #1549 +/- ##
=========================================
Coverage 91.57% 91.57%
=========================================
Files 91 91
Lines 18061 18085 +24
=========================================
+ Hits 16539 16562 +23
- Misses 1522 1523 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (23.6 MiB → 23.6 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates try-repo to generate and display a prek.toml configuration instead of emitting a YAML snippet, aligning the command’s behavior with the Rust prek TOML config format.
Changes:
- Switch
try-repoconfig generation from YAML string templating to TOML generation viatoml_edit. - Write the generated config to
prek.toml(in the temp dir) and print it with a trailing newline for cleaner output. - Update integration test snapshots to expect TOML output (
[[repos]],hooks = [...]).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| crates/prek/src/cli/try_repo.rs | Generates prek.toml using toml_edit, writes it to the temp directory, and prints it before running hooks. |
| crates/prek/tests/try_repo.rs | Updates try-repo snapshots from YAML to TOML output format. |
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.