Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1806 +/- ##
==========================================
+ Coverage 91.55% 91.72% +0.16%
==========================================
Files 98 98
Lines 20039 20039
==========================================
+ Hits 18346 18380 +34
+ Misses 1693 1659 -34 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (24.8 MiB → 24.8 MiB) Expand for cargo-bloat outputHead Branch ResultsBase Branch Results |
⚡️ Hyperfine BenchmarksSummary: 0 regressions, 0 improvements above the 10% threshold. Environment
CLI CommandsBenchmarking basic commands in the main repo:
|
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base --version |
2.3 ± 0.1 | 2.2 | 3.1 | 1.00 |
prek-head --version |
2.4 ± 0.1 | 2.3 | 2.7 | 1.05 ± 0.06 |
prek list
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base list |
9.0 ± 0.2 | 8.7 | 9.5 | 1.01 ± 0.04 |
prek-head list |
8.9 ± 0.3 | 8.6 | 11.5 | 1.00 |
prek validate-config .pre-commit-config.yaml
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base validate-config .pre-commit-config.yaml |
3.0 ± 0.0 | 3.0 | 3.2 | 1.00 |
prek-head validate-config .pre-commit-config.yaml |
3.1 ± 0.2 | 3.0 | 4.2 | 1.02 ± 0.06 |
prek sample-config
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base sample-config |
2.6 ± 0.0 | 2.5 | 2.8 | 1.00 ± 0.03 |
prek-head sample-config |
2.6 ± 0.1 | 2.5 | 2.9 | 1.00 |
Cold vs Warm Runs
Comparing first run (cold) vs subsequent runs (warm cache):
prek run --all-files (cold - no cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
155.2 ± 1.4 | 153.6 | 157.8 | 1.00 |
prek-head run --all-files |
155.5 ± 2.2 | 152.1 | 160.1 | 1.00 ± 0.02 |
prek run --all-files (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
155.1 ± 2.7 | 151.2 | 161.1 | 1.00 ± 0.03 |
prek-head run --all-files |
154.9 ± 3.0 | 150.1 | 160.8 | 1.00 |
Full Hook Suite
Running the builtin hook suite on the benchmark workspace:
prek run --all-files (full builtin hook suite)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --all-files |
155.8 ± 2.6 | 151.8 | 163.1 | 1.00 |
prek-head run --all-files |
156.0 ± 3.6 | 150.4 | 172.6 | 1.00 ± 0.03 |
Individual Hook Performance
Benchmarking each hook individually on the test repo:
prek run trailing-whitespace --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run trailing-whitespace --all-files |
21.6 ± 0.5 | 20.7 | 22.7 | 1.00 |
prek-head run trailing-whitespace --all-files |
21.7 ± 0.5 | 20.8 | 22.8 | 1.00 ± 0.03 |
prek run end-of-file-fixer --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run end-of-file-fixer --all-files |
29.1 ± 2.3 | 25.3 | 33.3 | 1.04 ± 0.11 |
prek-head run end-of-file-fixer --all-files |
27.9 ± 1.9 | 25.5 | 31.1 | 1.00 |
prek run check-json --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-json --all-files |
12.9 ± 0.2 | 12.6 | 13.4 | 1.02 ± 0.04 |
prek-head run check-json --all-files |
12.6 ± 0.4 | 11.8 | 13.5 | 1.00 |
prek run check-yaml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-yaml --all-files |
11.9 ± 0.2 | 11.6 | 12.5 | 1.01 ± 0.03 |
prek-head run check-yaml --all-files |
11.8 ± 0.2 | 11.4 | 12.4 | 1.00 |
prek run check-toml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-toml --all-files |
12.3 ± 0.4 | 11.6 | 13.1 | 1.01 ± 0.04 |
prek-head run check-toml --all-files |
12.1 ± 0.3 | 11.6 | 12.9 | 1.00 |
prek run check-xml --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-xml --all-files |
12.3 ± 0.4 | 11.7 | 13.1 | 1.00 ± 0.04 |
prek-head run check-xml --all-files |
12.2 ± 0.3 | 11.6 | 12.9 | 1.00 |
prek run detect-private-key --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run detect-private-key --all-files |
19.2 ± 1.4 | 16.4 | 22.8 | 1.01 ± 0.10 |
prek-head run detect-private-key --all-files |
19.0 ± 1.3 | 17.0 | 21.6 | 1.00 |
prek run fix-byte-order-marker --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run fix-byte-order-marker --all-files |
24.1 ± 1.1 | 21.1 | 25.7 | 1.00 |
prek-head run fix-byte-order-marker --all-files |
24.9 ± 1.6 | 21.5 | 28.6 | 1.03 ± 0.08 |
Installation Performance
Benchmarking hook installation (fast path hooks skip Python setup):
prek install-hooks (cold - no cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
5.0 ± 0.2 | 4.8 | 5.4 | 1.04 ± 0.05 |
prek-head install-hooks |
4.8 ± 0.0 | 4.7 | 4.8 | 1.00 |
prek install-hooks (warm - with cache)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base install-hooks |
4.8 ± 0.1 | 4.7 | 4.9 | 1.00 |
prek-head install-hooks |
4.8 ± 0.1 | 4.7 | 4.9 | 1.01 ± 0.02 |
File Filtering/Scoping Performance
Testing different file selection modes:
prek run (staged files only)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run |
53.6 ± 1.9 | 51.3 | 58.4 | 1.01 ± 0.04 |
prek-head run |
53.3 ± 0.9 | 52.0 | 54.8 | 1.00 |
prek run --files '*.json' (specific file type)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --files '*.json' |
9.1 ± 0.1 | 8.9 | 9.4 | 1.00 ± 0.02 |
prek-head run --files '*.json' |
9.1 ± 0.1 | 8.9 | 9.3 | 1.00 |
Workspace Discovery & Initialization
Benchmarking hook discovery and initialization overhead:
prek run --dry-run --all-files (measures init overhead)
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run --dry-run --all-files |
13.9 ± 0.1 | 13.7 | 14.1 | 1.00 |
prek-head run --dry-run --all-files |
14.8 ± 1.7 | 13.7 | 19.9 | 1.07 ± 0.13 |
Meta Hooks Performance
Benchmarking meta hooks separately:
prek run check-hooks-apply --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-hooks-apply --all-files |
14.3 ± 0.3 | 13.9 | 15.3 | 1.02 ± 0.05 |
prek-head run check-hooks-apply --all-files |
14.1 ± 0.6 | 12.3 | 14.9 | 1.00 |
prek run check-useless-excludes --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run check-useless-excludes --all-files |
12.5 ± 0.1 | 12.3 | 12.7 | 1.00 ± 0.01 |
prek-head run check-useless-excludes --all-files |
12.4 ± 0.1 | 12.3 | 12.7 | 1.00 |
prek run identity --all-files
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|---|---|---|---|---|
prek-base run identity --all-files |
11.0 ± 0.1 | 10.8 | 11.4 | 1.01 ± 0.02 |
prek-head run identity --all-files |
10.9 ± 0.1 | 10.8 | 11.2 | 1.00 |
323c73d to
9b659c8
Compare
This PR contains the following updates:
1.91→1.92.01.94.0(+2)Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
rust-lang/rust (msrv)
v1.92.0Compare Source
==========================
Language
MaybeUninitrepresentation and validity&raw [mut | const]for union field in safe codeSizedXin[X; 0]whenXis unsizing a const#[track_caller]and#[no_mangle](requires every declaration specifying#[track_caller]as well)never_type_fallback_flowing_into_unsafeanddependency_on_unit_never_type_fallbackdeny-by-defaultunused_must_uselint no longer warns onResult<(), Uninhabited>(for instance,Result<(), !>), orControlFlow<Uninhabited, ()>. This avoids having to check for an error that can never happen.Compiler
mips64el-unknown-linux-muslabi64link dynamicallyCommand-line information is typically not needed by debugging tools, and the removed code
was causing problems for incremental builds even on targets that don't use PDB debuginfo.
Libraries
Iterator::eq{_by}forTrustedLeniteratorsExtendfor tuplesDebugforEncodeWide.iter::Repeat::lastandcountwill now panic, rather than looping infinitely.Stabilized APIs
NonZero<u{N}>::div_ceilLocation::file_as_c_strRwLockWriteGuard::downgradeBox::new_zeroedBox::new_zeroed_sliceRc::new_zeroedRc::new_zeroed_sliceArc::new_zeroedArc::new_zeroed_slicebtree_map::Entry::insert_entrybtree_map::VacantEntry::insert_entryimpl Extend<proc_macro::Group> for proc_macro::TokenStreamimpl Extend<proc_macro::Literal> for proc_macro::TokenStreamimpl Extend<proc_macro::Punct> for proc_macro::TokenStreamimpl Extend<proc_macro::Ident> for proc_macro::TokenStreamThese previously stable APIs are now stable in const contexts:
<[_]>::rotate_left<[_]>::rotate_rightCargo
Rustdoc
Iterator::lastas well as impl methods likestd::vec::IntoIter::last. Now these impl methods will be hidden, freeing up space for inherent methods likeBTreeSet::last.Compatibility Notes
-C panic=aborton Linux by generating unwind tables by default. Build with-C force-unwind-tables=noto keep omitting unwind tables.invalid_macro_export_argumentsis upgraded to deny-by-default and will be reported in dependencies too.impl DerefMut for Pin<LocalType>pin!and formatting macrosConfiguration
📅 Schedule: Branch creation - Between 01:00 AM and 03:59 AM, only on Monday ( * 1-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.