Jo
2d0f35f9c9
Merge branch 'master' into copilot/replace-path-with-utf8path
2025-10-29 17:01:05 +08:00
Jo
a1b6d2821e
Refactor bloat-check and hotpath workflow ( #990 )
...
* Refactor `bloat-check` and `hotpath` workflow
* Use faster profiling profile
* Fix template injection issue
* Tweak
2025-10-29 17:00:38 +08:00
Jo
f49f1dc533
cargo shear
2025-10-28 21:06:26 +08:00
Jo
47159114e8
Merge branch 'master' into copilot/replace-path-with-utf8path
...
# Conflicts:
# src/cli/run/filter.rs
2025-10-28 21:04:27 +08:00
Louis Maddox
65a2fe22a6
Profile latency and allocations with hotpath ( #956 )
...
* perf(hotpath): profile prek run on its own repo
* Combine pr comments
* Fix path
---------
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-10-28 17:41:47 +08:00
copilot-swe-agent[bot]
2e0c95faaa
Migrate from std::path to camino::Utf8Path - Part 1
...
- Add camino dependency to Cargo.toml
- Replace std::path imports with camino imports in 56+ files
- Update type annotations from Path/PathBuf to Utf8Path/Utf8PathBuf
- Replace Path::new() calls with Utf8Path::new()
- Convert CWD to Utf8PathBuf
- Remove unnecessary .to_string_lossy() and .display() calls
- Add conversions between std::path and camino where needed for compatibility
Co-authored-by: j178 <10510431+j178@users.noreply.github.com >
2025-10-28 09:22:43 +00:00
Jo
a18d363b7e
Refactor identify using smallvec ( #982 )
...
```console
❯ hyperfine --warmup 3 'prek run -a trailing-whitespace' './target/release/prek run -a trailing-whitespace'
Benchmark 1: prek run -a trailing-whitespace
Time (mean ± σ): 56.6 ms ± 7.8 ms [User: 28.1 ms, System: 35.7 ms]
Range (min … max): 48.0 ms … 73.0 ms 37 runs
Benchmark 2: ./target/release/prek run -a trailing-whitespace
Time (mean ± σ): 51.0 ms ± 2.6 ms [User: 28.1 ms, System: 35.3 ms]
Range (min … max): 48.1 ms … 61.5 ms 46 runs
Summary
./target/release/prek run -a trailing-whitespace ran
1.11 ± 0.16 times faster than prek run -a trailing-whitespace
```
2025-10-28 16:16:31 +08:00
Jo
15ef28aee9
Bump version to 0.2.12 ( #978 )
2025-10-27 20:11:46 +08:00
Steven Taylor
7161581362
Allow using system trusted store by PREK_NATIVE_TLS ( #959 )
2025-10-26 03:56:02 +08:00
Jo
c2f0468b62
Bump version to 0.2.11 ( #962 )
2025-10-24 20:09:59 +08:00
renovate[bot]
aa8748496b
Update Rust crate astral-tokio-tar to v0.5.6 [SECURITY] ( #952 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-22 11:05:52 +08:00
Jo
9e0e9b3ad8
Bump version to 0.2.10 ( #922 )
2025-10-18 20:48:01 +08:00
Louis Maddox
bbdac782d6
Implement check-xml as builtin hook ( #894 )
...
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-10-17 17:12:15 +08:00
Jo
565c5e26e4
Bump version to 0.2.9 ( #903 )
2025-10-16 18:45:15 +08:00
Jo
e924c4ba50
Try release again ( #878 )
2025-10-14 15:16:08 +08:00
Jo
45882a6c0e
Bump version to 0.2.7 ( #877 )
2025-10-14 14:24:03 +08:00
Jo
2a226a3d13
Bump version to 0.2.6 ( #875 )
2025-10-14 13:16:49 +08:00
Jo
33864f24bc
Bump version to 0.2.5 ( #864 )
2025-10-10 22:11:13 +08:00
Jo
38ea52040d
Bump version to 0.2.4 ( #848 )
2025-10-07 16:59:27 +08:00
Jo
7fe75a86da
Bump version to 0.2.3 ( #818 )
2025-09-29 16:48:36 +08:00
Jo
eef84cf8c5
Bump version to 0.2.2 ( #802 )
2025-09-26 22:56:32 +08:00
renovate[bot]
a906d48a9c
Update Rust crate astral-tokio-tar to v0.5.4 [SECURITY] ( #788 )
2025-09-24 07:27:19 +08:00
renovate[bot]
64afa98029
Update Rust crate anyhow to v1.0.100 ( #769 )
...
* Update Rust crate anyhow to v1.0.100
* Lint
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-09-22 14:31:33 +08:00
renovate[bot]
b924bb5920
Update Rust crate fancy-regex to v0.16.2 ( #772 )
...
* Update Rust crate fancy-regex to v0.16.2
* Update snapshot
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-09-22 13:12:51 +08:00
renovate[bot]
3626607268
Update Rust crate clap to v4.5.48 ( #770 )
2025-09-22 10:35:24 +08:00
renovate[bot]
ff987a1f00
Update Rust crate clap_complete to v4.5.58 ( #771 )
2025-09-22 10:35:12 +08:00
renovate[bot]
db21969fad
Update Rust crate toml to v0.9.7 ( #776 )
2025-09-22 10:34:33 +08:00
renovate[bot]
29ce978b67
Update Rust crate fs-err to v3.1.2 ( #773 )
2025-09-22 09:30:11 +08:00
renovate[bot]
d52869242b
Update Rust crate serde to v1.0.226 ( #774 )
2025-09-22 09:29:54 +08:00
renovate[bot]
ce58964f63
Update Rust crate serde_stacker to v0.1.14 ( #775 )
2025-09-22 09:28:44 +08:00
Jo
224d7e6dae
Bump version to 0.2.1 ( #749 )
2025-09-15 23:01:14 +08:00
Jo
022ef1824c
auto-update: prefer tags that are most similar to the current version ( #719 )
...
* auto-update: prefer tags that are most similar to the current version
* Add test
2025-09-15 21:35:44 +08:00
renovate[bot]
d8f4adbcaa
Update Rust crate tempfile to v3.22.0 ( #743 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:52:36 +08:00
renovate[bot]
0d0fe1373b
Update Rust crate rustix to v1.1.2 ( #742 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:52:02 +08:00
renovate[bot]
5afcb08bda
Update Rust crate target-lexicon to v0.13.3 ( #739 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:48:22 +08:00
renovate[bot]
a9871015a6
Update Rust crate serde_json to v1.0.145 ( #737 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:25 +08:00
renovate[bot]
e060e2ea42
Update Rust crate serde_ignored to v0.1.14 ( #736 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:46:11 +08:00
renovate[bot]
a560ba5572
Update Rust crate serde_stacker to v0.1.13 ( #738 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:44:40 +08:00
renovate[bot]
6133c95845
Update Rust crate semver to v1.0.27 ( #734 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-15 10:43:47 +08:00
Jo
e3eeb39fd1
Bump version to 0.2.0 ( #726 )
2025-09-14 12:43:16 +08:00
Kushagra Udai
4e9faf20ba
Speed up check_toml ( #713 )
...
* Speed up check_toml, closes #710
* fmt
* codecov
* fmt
2025-09-11 11:22:40 +08:00
Jo
98e0b71a61
Bump version to 0.2.0-alpha.5 ( #711 )
2025-09-11 10:52:26 +08:00
Jo
6f0a7da41b
Generate cli reference ( #707 )
...
* Generate cli reference
* Fix lint
2025-09-10 22:05:05 +08:00
Jo
d3825a1fad
Bump version to 0.2.0-alpha.4 ( #696 )
...
* Revert "Remove setup-dev-drive from Windows CI (#674 )"
This reverts commit f3111a4d29 .
* Bump version to 0.2.0-alpha.4
2025-09-10 00:44:20 +08:00
Jo
d5f2d6b303
Bump version to 0.2.0-alpha.3 ( #671 )
2025-09-08 15:21:24 +08:00
renovate[bot]
985655e833
Update Rust crate insta to v1.43.2 ( #653 )
2025-09-08 09:36:49 +08:00
Jo
e404b618cf
Bump version to 0.2.0-alpha.2 (re-release of 0.2.0-alpha.1) ( #642 )
2025-09-07 16:01:00 +08:00
Jo
2ad6d1b2da
Bump version to 0.2.0-alpha.1 ( #640 )
...
* Bump version to 0.2.0a1
* Fix version regex
* Update doc
2025-09-07 15:24:27 +08:00
Jo
e9fc08bc6b
Implement project and hook selector ( #623 )
...
* selection
* .
* complete
* rewrite
* Fix
* Fix docs
* Update doc
* Fix single config mode
* Improve
* Fix doc
* Fixes and tweaks
* Fix tests
* Fixes and tests
* Use path clean instead of canonicalized
2025-09-06 16:44:22 +08:00
Jo
a5a1b3b2b0
Support multiple .pre-commit-config.yaml in a workspace (monorepo mode) ( #481 )
...
* Remove color from trace log
Since `tracing-subscriber 0.3.20`, ANSI codes will be escaped so that color can not be shown in log. https://github.com/tokio-rs/tracing/commit/4c52ca5266a3920fc5dfeebda2accf15ee7fb278
* Refactor project constructure
# Conflicts:
# src/cli/run/run.rs
* .
# Conflicts:
# src/workspace.rs
# Conflicts:
# src/workspace.rs
# Conflicts:
# src/workspace.rs
.
# Conflicts:
# src/git.rs
# Conflicts:
# src/git.rs
# Conflicts:
# src/git.rs
# src/languages/script.rs
Support multiple `.pre-commit-connfig.yaml` in a workspace (monorepo mode)
.
.
Make it compile
Fix
.
.
.
Fix
Fix
Fix
.
.
.
# Conflicts:
# src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs
# src/builtin/pre_commit_hooks/mod.rs
# src/hook.rs
# src/languages/docker.rs
# src/languages/docker_image.rs
# src/languages/golang/golang.rs
# src/languages/node/node.rs
# src/languages/python/python.rs
# src/languages/system.rs
# src/run.rs
* Refactor
* Fix
* .
* Fix `--config FILE`
* Add docs
* Misc
* Fix
# Conflicts:
# README.md
2025-09-06 16:44:22 +08:00