Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## prektoml #1560 +/- ##
=============================================
+ Coverage 77.67% 88.53% +10.86%
=============================================
Files 92 92
Lines 18035 18122 +87
=============================================
+ Hits 14009 16045 +2036
+ Misses 4026 2077 -1949 ☔ 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
This PR adds native TOML configuration file support (prek.toml) alongside existing YAML support, provides comprehensive documentation on both formats, adds the prek identify subcommand for debugging file identification, and implements LLM-friendly documentation generation. The PR also includes routine dependency updates.
Changes:
- Adds
prek.tomlas a first-class configuration format with full feature parity to YAML configs - Implements
prek identifysubcommand to display file identification tags (supports text and JSON output) - Adds llms.txt generation for LLM-friendly documentation consumption
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| docs/configuration.md | Extensively updated to document both TOML and YAML formats, including format selection guidance, examples, and compatibility notes |
| docs/cli.md | Added documentation for the new prek identify command |
| docs/prek.schema.json | New JSON Schema file for configuration validation (generated) |
| mkdocs.yml | Added llmstxt plugin configuration for LLM-friendly docs |
| mise.toml | Updated doc build tasks to separate preview and build, added llmstxt generation |
| docs/requirements.txt | Added llmstxt-standalone dependency |
| crates/prek-consts/src/lib.rs | Added constants for config filenames with precedence order |
| crates/prek/src/config.rs | Added TOML parsing support based on file extension |
| crates/prek/src/workspace.rs | Updated config discovery to check multiple filenames with precedence |
| crates/prek/src/cli/sample_config.rs | Added --format flag to generate TOML or YAML samples |
| crates/prek/src/cli/auto_update.rs | Implemented TOML config updating with comment preservation |
| crates/prek/src/cli/try_repo.rs | Changed to generate prek.toml instead of YAML |
| crates/prek/src/cli/identify.rs | New command implementation for file identification |
| crates/prek/src/cli/mod.rs | Added identify command and format enum |
| crates/prek/Cargo.toml | Added toml_edit dependency |
| Test files | Updated constant references and added TOML-specific tests |
| .pre-commit-config.yaml | Updated typos and mdformat-mkdocs versions |
| .github/workflows/*.yml | Updated dependency versions and action references |
j178
added a commit
that referenced
this pull request
Feb 4, 2026
j178
added a commit
that referenced
this pull request
Feb 5, 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.