| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #2152 +/- ##
=======================================
Coverage 92.58% 92.59%
=======================================
Files 122 122
Lines 26192 26196 +4
=======================================
+ Hits 24251 24255 +4
Misses 1941 1941 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
There was a problem hiding this comment.
This PR extends prek list to support the same hook group filtering capabilities already available in prek run, by introducing --group and --no-group selectors and wiring them through hook initialization and filtering.
Changes:
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file| File | Description |
|---|---|
| docs/reference/cli.md | Documents prek list --group/--no-group options. |
| crates/prek/tests/list.rs | Adds coverage for group include/exclude behavior, unused selector warnings, validation errors, and “don’t clone excluded remotes”. |
| crates/prek/src/workspace.rs | Generalizes HookInitFilters constructor to accept optional selectors and group filters, enabling pre-clone filtering by group. |
| crates/prek/src/main.rs | Passes groups / no_groups args into the cli::list call. |
| crates/prek/src/cli/run/run.rs | Updates call site to the new HookInitFilters::new(...) constructor. |
| crates/prek/src/cli/mod.rs | Adds groups / no_groups fields to ListArgs for clap wiring. |
| crates/prek/src/cli/list.rs | Parses group filters, applies them to hook output, and reports unused group selectors. |
| crates/prek/src/cli/install.rs | Updates call site to the new HookInitFilters::new(...) constructor. |
Sorry, something went wrong.
📦 Cargo Bloat ComparisonBinary size change: +0.00% (26.3 MiB → 26.3 MiB) Expand for cargo-bloat outputHead Branch Results File .text Size Crate Name
1.2% 2.6% 332.0KiB aws_lc_sys aws_lc_0_41_0_aes_gcm_encrypt_avx512
1.2% 2.6% 332.0KiB aws_lc_sys aws_lc_0_41_0_aes_gcm_decrypt_avx512
0.3% 0.7% 90.4KiB prek prek::languages::<impl prek::config::Language>::run::{{closure}}::{{closure}}
0.3% 0.7% 85.5KiB prek prek::languages::<impl prek::config::Language>::run::{{closure}}::{{closure}}
0.3% 0.5% 69.9KiB prek prek::languages::<impl prek::config::Language>::install::{{closure}}
0.2% 0.5% 65.1KiB prek? <prek::cli::Command as clap_builder::derive::Subcommand>::augment_subcommands
0.2% 0.4% 49.5KiB prek prek::run::{{closure}}
0.2% 0.4% 49.4KiB annotate_snippets annotate_snippets::renderer::render::render
0.2% 0.3% 44.0KiB prek prek::cli::run::run::run::{{closure}}
0.1% 0.2% 31.8KiB prek? <prek::cli::RunOptions as clap_builder::derive::Args>::augment_args
0.1% 0.2% 30.4KiB prek? <prek::config::_::<impl serde_core::de::Deserialize for prek::config::Config>::deserialize::__Visitor as serde_core::de::Visitor>::visit_map
0.1% 0.2% 30.2KiB std core::ptr::drop_in_place<prek::languages::<impl prek::config::Language>::install::{{closure}}>
0.1% 0.2% 28.1KiB serde_saphyr granit_parser::scanner::Scanner<T>::fetch_more_tokens
0.1% 0.2% 28.0KiB aws_lc_sys aws_lc_0_41_0_edwards25519_scalarmuldouble_alt
0.1% 0.2% 27.5KiB aws_lc_sys aws_lc_0_41_0_edwards25519_scalarmuldouble
0.1% 0.2% 26.1KiB prek prek::cli::try_repo::try_repo::{{closure}}
0.1% 0.2% 23.0KiB serde_saphyr granit_parser::scanner::Scanner<T>::fetch_more_tokens
0.1% 0.2% 22.3KiB prek prek::hooks::meta_hooks::MetaHooks::run::{{closure}}
0.1% 0.2% 22.3KiB [Unknown] Lp384_montjscalarmul_alt_p384_montjadd
0.1% 0.2% 21.9KiB serde_saphyr? <serde_saphyr::de::YamlDeserializer as serde_core::de::Deserializer>::deserialize_map
41.7% 86.3% 10.9MiB And 24101 smaller methods. Use -n N to show more.
48.3% 100.0% 12.7MiB .text section size, the file size is 26.3MiB
Base Branch Results File .text Size Crate Name
1.2% 2.6% 332.0KiB aws_lc_sys aws_lc_0_41_0_aes_gcm_encrypt_avx512
1.2% 2.6% 332.0KiB aws_lc_sys aws_lc_0_41_0_aes_gcm_decrypt_avx512
0.3% 0.7% 90.4KiB prek prek::languages::<impl prek::config::Language>::run::{{closure}}::{{closure}}
0.3% 0.7% 85.3KiB prek prek::languages::<impl prek::config::Language>::run::{{closure}}::{{closure}}
0.3% 0.5% 69.9KiB prek prek::languages::<impl prek::config::Language>::install::{{closure}}
0.2% 0.5% 61.9KiB prek? <prek::cli::Command as clap_builder::derive::Subcommand>::augment_subcommands
0.2% 0.4% 49.4KiB annotate_snippets annotate_snippets::renderer::render::render
0.2% 0.4% 48.5KiB prek prek::run::{{closure}}
0.2% 0.3% 44.6KiB prek prek::cli::run::run::run::{{closure}}
0.1% 0.2% 31.1KiB prek? <prek::cli::RunOptions as clap_builder::derive::Args>::augment_args
0.1% 0.2% 30.4KiB prek? <prek::config::_::<impl serde_core::de::Deserialize for prek::config::Config>::deserialize::__Visitor as serde_core::de::Visitor>::visit_map
0.1% 0.2% 30.2KiB std core::ptr::drop_in_place<prek::languages::<impl prek::config::Language>::install::{{closure}}>
0.1% 0.2% 28.1KiB serde_saphyr granit_parser::scanner::Scanner<T>::fetch_more_tokens
0.1% 0.2% 28.0KiB aws_lc_sys aws_lc_0_41_0_edwards25519_scalarmuldouble_alt
0.1% 0.2% 27.5KiB aws_lc_sys aws_lc_0_41_0_edwards25519_scalarmuldouble
0.1% 0.2% 26.1KiB prek prek::cli::try_repo::try_repo::{{closure}}
0.1% 0.2% 23.0KiB serde_saphyr granit_parser::scanner::Scanner<T>::fetch_more_tokens
0.1% 0.2% 22.7KiB prek prek::hooks::meta_hooks::MetaHooks::run::{{closure}}
0.1% 0.2% 22.3KiB [Unknown] Lp384_montjscalarmul_alt_p384_montjadd
0.1% 0.2% 21.9KiB serde_saphyr? <serde_saphyr::de::YamlDeserializer as serde_core::de::Deserializer>::deserialize_map
41.7% 86.4% 11.0MiB And 24132 smaller methods. Use -n N to show more.
48.3% 100.0% 12.7MiB .text section size, the file size is 26.3MiB
|
Sorry, something went wrong.
⚡️ Hyperfine BenchmarksSummary: 0 regressions, 1 improvements above the 10% threshold. Environment
Benchmarking basic commands in the main repo: prek --version
prek list
prek validate-config .pre-commit-config.yaml
prek sample-config
Comparing first run (cold) vs subsequent runs (warm cache): prek run --all-files (cold - no cache)
prek run --all-files (warm - with cache)
Running the builtin hook suite on the benchmark workspace: prek run --all-files (full builtin hook suite)
Benchmarking each hook individually on the test repo: prek run trailing-whitespace --all-files
prek run end-of-file-fixer --all-files
prek run check-json --all-files
prek run check-yaml --all-files
prek run check-toml --all-files
prek run check-xml --all-files
prek run detect-private-key --all-files
prek run fix-byte-order-marker --all-files
Benchmarking hook installation (fast path hooks skip Python setup): prek install-hooks (cold - no cache)
prek install-hooks (warm - with cache)
Testing different file selection modes: prek run (staged files only)
prek run --files '*.json' (specific file type)
✅ Performance improvement for prek run --files '*.json' (specific file type): 72.3500% faster Workspace Discovery & InitializationBenchmarking hook discovery and initialization overhead: prek run --dry-run --all-files (measures init overhead)
Benchmarking meta hooks separately: prek run check-hooks-apply --all-files
prek run check-useless-excludes --all-files
prek run identity --all-files
|
Sorry, something went wrong.
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [prek](https://github.com/j178/prek) | patch | `0.4.4` → `0.4.5` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>j178/prek (prek)</summary> ### [`v0.4.5`](https://github.com/j178/prek/blob/HEAD/CHANGELOG.md#045) [Compare Source](j178/prek@v0.4.4...v0.4.5) Released on 2026-06-15. ##### ✨Highlights 0.4.5 completes `prek`'s pre-commit language coverage. With R, Conda, Perl, and coursier now supported, `prek` supports every language available in pre-commit, plus `prek`-only modern languages such as Bun and Deno. This is full feature parity with pre-commit. The last major compatibility gap is closed, and `prek` is now on the path to 1.0. ##### 💚 Sponsorship If `prek` saves time for you or your team, please consider sponsoring the project on [GitHub Sponsors](https://github.com/sponsors/j178). It helps keep new features, performance work, and maintenance moving. ##### Enhancements - Add `Perl` language support ([#​2201](j178/prek#2201)) - Add `R` language support ([#​2206](j178/prek#2206)) - Add `Conda` language support ([#​2203](j178/prek#2203)) - Add `coursier` language support ([#​2194](j178/prek#2194)) - Add group filters to list ([#​2152](j178/prek#2152)) - Remove legacy repo path support ([#​2150](j178/prek#2150)) - Skip cloning fully filtered remote repos ([#​2151](j178/prek#2151)) ##### Performance - Avoid building JSON trees in syntax hooks ([#​2156](j178/prek#2156)) - Scan mixed line endings without line vector ([#​2160](j178/prek#2160)) - Skip file scan for always-run no-filename hooks ([#​2155](j178/prek#2155)) - Use fixed buffer for EOF scan ([#​2163](j178/prek#2163)) - Use fixed buffer for private key scan ([#​2164](j178/prek#2164)) ##### Bug fixes - Fix pretty-format-json CRLF handling ([#​2210](j178/prek#2210)) - Handle missing blobs in diff snapshots ([#​2211](j178/prek#2211)) - Ignore coursier channel from working repo ([#​2202](j178/prek#2202)) ##### Contributors - [@​j178](https://github.com/j178) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMTguMCIsInVwZGF0ZWRJblZlciI6IjQzLjIxOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiLCJhdXRvbWF0aW9uOmJvdC1hdXRob3JlZCIsImRlcGVuZGVuY3ktdHlwZTo6cGF0Y2giXX0=-->
| Back | FazBrowse Home | New Git URL |
Adds --group and --no-group to prek list.