1
0
mirror of https://github.com/j178/prek.git synced 2026-04-03 17:34:03 +02:00
Commit Graph

233 Commits

Author SHA1 Message Date
renovate[bot]
2e140e8ea6 Update tokio-tracing monorepo (#1168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:27:33 +08:00
Jo
bdc40e36aa Bump version to 0.2.19 (#1156) 2025-11-26 17:14:35 +08:00
Jo
5c9fce63be Bump version to 0.2.18 (#1132)
* Bump version to 0.2.18

* Add highlights
2025-11-21 20:41:20 +08:00
Jo
ede0277df3 Enable enable virtual terminal processing on Windows (#1123) 2025-11-20 12:41:02 +08:00
Jo
5110eb9fc1 Bump version to 0.2.17 (#1114) 2025-11-18 23:04:44 +08:00
Jo
683ad1f786 Revert back to serde_yaml again (#1112) 2025-11-18 22:46:32 +08:00
Jo
df5068a797 Bump version to 0.2.16 (#1110) 2025-11-18 17:52:07 +08:00
Jo
aed7e555d0 Restore using serde_yaml in check-yaml hook (#1106)
* Fix check-yaml: do not try to parse !!binary scalar into UTF-8 string

* Restore using `serde_yaml` in `check-yaml` hook

* Update snaps
2025-11-18 17:25:52 +08:00
renovate[bot]
19e97f7c92 Update Rust crate serde-saphyr to 0.0.8 (#1099) 2025-11-17 19:26:19 +08:00
Jo
11f369ed7a Bump version to 0.2.15 (#1098) 2025-11-17 18:41:36 +08:00
Jo
7e06cffa70 Bump version to 0.2.15-alpha.3 (#1091)
* Fix release

* Bump version to 0.2.15-alpha.3
2025-11-16 19:26:06 +08:00
Jo
bf8dc871e5 Bump version to 0.2.15-alpha.2 (#1090)
* Revert "Bump version to 0.2.15-alpha.1 (#1089)"

This reverts commit 0d0509f4f3.

* Bump

* Bump version to 0.2.15-alpha.2
2025-11-16 18:39:38 +08:00
Jo
0d0509f4f3 Bump version to 0.2.15-alpha.1 (#1089) 2025-11-16 18:07:51 +08:00
Jo
8292d951b8 Prepare for publishing to crates.io (#1088)
* Add descriptions for crates

* Add version

# Conflicts:
#	Cargo.toml

* Add action

* Fix
2025-11-16 17:36:51 +08:00
Jo
0dd2fcc9b2 Replace serde-yaml with serde_saphyr (#1087)
* .

# Conflicts:
#	Cargo.lock
#	Cargo.toml

* .

* .

* Replace `serde-yaml` with `serde_saphyr`

* Fix sanps

* Fix snaps
2025-11-16 15:58:39 +08:00
renovate[bot]
37d65d5825 Update Rust crate fs-err to v3.2.0 (#1086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:04:03 +08:00
Jo
f65fcb48ef Revert "Use mimalloc and tikv-jemallocator as global allocator (#1082)" (#1084)
This reverts commit a670b814b2.
2025-11-15 14:55:04 +08:00
Jo
544bd32860 Remove unused url dependency (#1083) 2025-11-15 14:54:07 +08:00
Jo
a670b814b2 Use mimalloc and tikv-jemallocator as global allocator (#1082) 2025-11-15 14:35:20 +08:00
Jo
cd8d8fdb52 Migrate to astral_async_zip on crates.io (#1081)
* Migrate to astral_async_zip on crates.io

* Fix lint
2025-11-15 14:21:05 +08:00
Jo
30355ea9b4 Bump version to 0.2.14 (#1075) 2025-11-14 23:07:29 +08:00
Jo
9c70b50930 Bump version to 0.2.13 (#1036) 2025-11-04 22:05:02 +08:00
Copilot
011a0b3ff1 Rename crate lib/constants to crates/prek-consts and rename lib to crates (#1026)
* Initial plan

* Rename crate lib/constants to lib/prek-consts and fix all references

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Rename lib directory to crates and update all references

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-11-03 23:16:58 +08:00
Jo
ee0acf25a3 Rename pty crate to prek-pty (#1025) 2025-11-03 22:16:22 +08:00
Jo
f6d873c48e Vendor yaml-merge-keys to reduce dependencies (#1024) 2025-11-03 20:36:23 +08:00
Jo
156f06977a Fix YAML with nested merge keys (#1020) 2025-11-03 15:36:40 +08:00
renovate[bot]
0869a57bcb Update Rust crate assert_cmd to v2.1.1 (#1015)
* Update Rust crate assert_cmd to v2.1.1

* Fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-11-01 18:16:10 +08:00
renovate[bot]
ac4fccf323 Update Rust crate ctrlc to v3.5.1 (#1011) 2025-11-01 12:08:56 +08:00
renovate[bot]
4f6798d244 Update Rust crate ignore to v0.4.25 (#1012) 2025-11-01 11:59:23 +08:00
renovate[bot]
73bb025c08 Update Rust crate clap to v4.5.51 (#1009) 2025-11-01 11:58:22 +08:00
renovate[bot]
43999dcec0 Update Rust crate clap_complete to v4.5.60 (#1010) 2025-11-01 11:57:44 +08:00
renovate[bot]
189d89ab77 Update Rust crate indicatif to v0.18.2 (#1000)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 15:27:55 +08:00
renovate[bot]
ad5c374032 Update Rust crate etcetera to 0.11.0 (#1002)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 15:23:06 +08:00
Jo
5ae43ab61e Use lazy_regex for compile time regex checking (#996) 2025-10-30 21:26:28 +08:00
Jo
8470e0424a Remove hotpath profiling (#991)
The profiling isn’t very useful right now - it’s way too sensitive to noise. What we really need is proper benchmarking that runs multiple times to filter out all that noise, like what you get with https://codspeed.io/ or https://bencher.dev/
2025-10-29 21:11:23 +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
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
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