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

221 Commits

Author SHA1 Message Date
renovate[bot]
29697ad7a8 Update Rust crate quick-xml to 0.39 (#1461)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-23 11:30:57 +08:00
Jo
da5ddd8304 Bump version to 0.3.0 2026-01-22 11:49:30 +08:00
Jo
edcf3d82ab Add taplo-fmt prek hook to format toml files (#1435) 2026-01-21 14:52:53 +08:00
tison
e8279e5d86 Bump mea to 0.6.3 to reduce key clone in OnceMap (#1434)
Signed-off-by: tison <wander4096@gmail.com>
2026-01-21 14:20:55 +08:00
tison
c8091b298f Migrate from uv-once-map to mea OnceMap (#1433)
Signed-off-by: tison <wander4096@gmail.com>
2026-01-21 13:57:20 +08:00
Jo
de647489ea Bump version to 0.2.30 (#1392) 2026-01-18 20:49:58 +08:00
Jo
8faa42c091 Add nextest partitioning for Windows tests (#1389)
* Add nextest partitioning for Windows tests

* Fix

* Fix

* Fix

* Fix

* Disable optimize for fast-build

* Fix integration bin name

* Fix

* Fix

* Try fix

* Debug

* Fix

* Fix path substitute

* Fix
2026-01-18 20:37:53 +08:00
Jo
414d0cc088 Singleflight Python health checks with cached interpreter info (#1381) 2026-01-17 19:08:02 +08:00
Jo
340a773f90 Preserve quoting style in auto-update (#1379) 2026-01-17 17:28:18 +08:00
Jo
b7a7becead Bump version to 0.2.29 (#1374) 2026-01-16 19:28:25 +08:00
Na'aman Hirschfeld
392eb2d60c Add glob list support for file patterns (files and exclude) (#1197)
* feat: add glob list support for file patterns

# Conflicts:
#	docs/configuration.md

* Fix clippy warnings in config tests

* Add tests for glob file patterns

* chore: run cargo fmt

* test: make glob pattern test windows-friendly

* Fix CI: add globset dep and disable GPG signing in tests

* Update json schema

* Tweaks

* Update doc

* Update doc

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2026-01-16 16:59:26 +08:00
Jo
352685fdbd Add check-json5 as builtin hooks (#1367)
* Add `check-json5` as builtin hooks

* Refactor

* Add tests

* Tweak

* Document JSON5 duplicate key behavior in test (#1368)

* Initial plan

* Add documentation explaining duplicate key behavior in JSON5

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>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2026-01-16 14:51:51 +08:00
Jo
34fb8f3ecc Refactor CI workflow and cargo profile (#1361) 2026-01-15 16:54:52 +08:00
Jo
4b7521bc96 Bump version to 0.2.28 (#1349) 2026-01-13 22:57:14 +08:00
Jo
fb857e62f5 Build and upload binaries in CI (#1340)
* Debug command line length

* Build binaries

* Revert "Debug command line length"

This reverts commit d17610dc0c.
2026-01-13 17:12:27 +08:00
Jo
a72a3cc3df Bump version to 0.2.27 (#1321) 2026-01-07 22:14:04 +08:00
Jo
e255e88d37 Bump version to 0.2.26 (#1318) 2026-01-07 20:49:55 +08:00
Loganaden Velvindron
3b832c71f9 Fix "TARmageddon" vulnerability CVE-2025-62518 (#1313)
https://nvd.nist.gov/vuln/detail/CVE-2025-62518
2026-01-05 19:18:34 +08:00
Jo
1856285aba Bump version to 0.2.25 (#1282)
* Bump version to 0.2.25

* Update JSON schema
2025-12-27 00:36:49 +08:00
Jo
ad5c0dfb6a Generate JSON schema for prek configuration (#1270)
* Generate JSON schema for prek configuration

* Fix schema for `Repo` enum

* Test in CI
2025-12-23 16:31:05 +08:00
Jo
0278b59b76 Bump version to 0.2.24 (#1265) 2025-12-23 11:01:07 +08:00
Jo
5e489814e1 Bump version to 0.2.23 (#1246) 2025-12-20 13:21:53 +08:00
Jo
1c9d1f5618 Implement priority based parallel execution (#1232)
* Support priority-based parallel hook execution

* .

* .

* .

* .

* .

* Implement `priority` based parallel exeuction

* Reduce repeated code

* Add progress for processing files

* Improve sytling

* Tweak UI

* Fix UI

* Update snaps

* Update docs

* Add a test

* Update proposal

* Update crates/prek/src/config.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply review feedbacks

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-20 12:09:42 +08:00
renovate[bot]
93926c9ce6 Update Rust crate fancy-regex to 0.17.0 (#1218)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-15 12:07:54 +08:00
Jo
6d14524326 Bump version to 0.2.22 (#1223) 2025-12-13 20:49:03 +08:00
Jo
34d42a7a15 Compile insta in opt mode (#1215) 2025-12-12 16:05:33 +08:00
Jo
42ab6a3d1c Migrate to virtual workspace layout (#1210) 2025-12-09 17:54:57 +08:00
Jo
6dcab879a8 Bump version to 0.2.21 (#1206) 2025-12-09 13:11:46 +08:00
Jo
adbb89f6a2 Bump version to 0.2.20 (#1199) 2025-12-08 17:14:28 +08:00
Louis Maddox
dad650b965 rust: add support for finding packages in virtual workspaces (#1180)
* fix(rust): find packages in virtual workspaces

* chore(deps): add cargo_metadata

* refactor: use cargo_metadata instead of DIY approach

* revert: do not change prek's own typos hook

* Sort deps

* Mention in `diff.md`

* Minor tweaks

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-04 17:18:36 +08:00
Matthew Mckee
bd4da34a51 Add cache size command (#1183) 2025-12-03 12:42:45 +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
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