@j178/prek 0.5.4 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/README.md +41 -41
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,90 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.6
4
+
5
+ Released on 2026-10-19.
6
+
7
+ ### Enhancements
8
+
9
+ - Add builtin hook `check-commit-trailers` ([#2885](https://github.com/j178/prek/pull/2885))
10
+ - Add builtin hook `check-signed-commit` ([#2725](https://github.com/j178/prek/pull/2725))
11
+
12
+ ### Performance
13
+
14
+ - Enable PGO for native release builds ([#2890](https://github.com/j178/prek/pull/2890))
15
+ - Reduce hook process launches with balanced batches ([#2907](https://github.com/j178/prek/pull/2907))
16
+ - Resolve hook commands before batching ([#2840](https://github.com/j178/prek/pull/2840))
17
+
18
+ ### Bug fixes
19
+
20
+ - Accept UTF-8 BOM in `check-json` ([#2879](https://github.com/j178/prek/pull/2879))
21
+ - Preserve unquoted dotted revisions in `prek update` ([#2853](https://github.com/j178/prek/pull/2853))
22
+
23
+ ### Documentation
24
+
25
+ - Document standalone installer options ([#2859](https://github.com/j178/prek/pull/2859))
26
+ - Update benchmarks for prek 0.5.5 ([#2786](https://github.com/j178/prek/pull/2786))
27
+
28
+ ### Other changes
29
+
30
+ - Enable ICF for release builds ([#2891](https://github.com/j178/prek/pull/2891))
31
+ - Update uv to 0.13.0 ([#2856](https://github.com/j178/prek/pull/2856))
32
+
33
+ ### Contributors
34
+
35
+ - @ebuildy
36
+ - @j178
37
+ - @shaanmajid
38
+
39
+ ## 0.5.5
40
+
41
+ Released on 2026-10-05.
42
+
43
+ ### Enhancements
44
+
45
+ - Add Nushell completion generation ([#2785](https://github.com/j178/prek/pull/2785))
46
+ - Add `ppc64le` wheel and binary builds ([#2809](https://github.com/j178/prek/pull/2809))
47
+
48
+ ### Performance
49
+
50
+ - Avoid JSON imports when querying Python interpreters ([#2790](https://github.com/j178/prek/pull/2790))
51
+ - Avoid duplicate diffs after hooks rewrite files ([#2815](https://github.com/j178/prek/pull/2815))
52
+ - Batch file reads in shebang checks ([#2793](https://github.com/j178/prek/pull/2793))
53
+ - Check cached hook environments concurrently ([#2797](https://github.com/j178/prek/pull/2797))
54
+ - Overlap Git discovery with worktree status checks ([#2821](https://github.com/j178/prek/pull/2821))
55
+ - Query staged additions only for case conflicts ([#2802](https://github.com/j178/prek/pull/2802))
56
+ - Reduce worker overhead in XML and pygrep checks ([#2789](https://github.com/j178/prek/pull/2789))
57
+ - Reuse Git worktree state during hook startup ([#2787](https://github.com/j178/prek/pull/2787))
58
+ - Reuse intent-to-add paths when saving unstaged changes ([#2788](https://github.com/j178/prek/pull/2788))
59
+ - Run Git queries concurrently for case-conflict checks ([#2792](https://github.com/j178/prek/pull/2792))
60
+ - Share Bun and Deno version queries across environments ([#2795](https://github.com/j178/prek/pull/2795))
61
+ - Share Lua runtime probes across hook environments ([#2796](https://github.com/j178/prek/pull/2796))
62
+ - Share Ruby version queries across hook environments ([#2794](https://github.com/j178/prek/pull/2794))
63
+ - Share mise version queries across hook environments ([#2798](https://github.com/j178/prek/pull/2798))
64
+ - Skip site initialization in Python interpreter probes ([#2822](https://github.com/j178/prek/pull/2822))
65
+ - Skip untracked files in destroyed symlink checks ([#2799](https://github.com/j178/prek/pull/2799))
66
+ - Skip unused file input for always-run hooks ([#2813](https://github.com/j178/prek/pull/2813))
67
+
68
+ ### Bug fixes
69
+
70
+ - Preserve staged and unstaged changes on conflicted stash restore ([#2803](https://github.com/j178/prek/pull/2803))
71
+ - Default missing `core.fileMode` in shebang checks ([#2832](https://github.com/j178/prek/pull/2832))
72
+ - Match protected branch patterns from the start ([#2829](https://github.com/j178/prek/pull/2829))
73
+ - Normalize explicit paths in shebang index checks ([#2831](https://github.com/j178/prek/pull/2831))
74
+ - Preserve empty `trailing-whitespace` character sets ([#2830](https://github.com/j178/prek/pull/2830))
75
+ - Reject empty files in `check-json` ([#2826](https://github.com/j178/prek/pull/2826))
76
+ - Reject trailing data in `check-json` ([#2828](https://github.com/j178/prek/pull/2828))
77
+ - Round up file sizes in `check-added-large-files` ([#2827](https://github.com/j178/prek/pull/2827))
78
+
79
+ ### Documentation
80
+
81
+ - Redesign the prek badge and refresh logo details ([#2818](https://github.com/j178/prek/pull/2818))
82
+
83
+ ### Contributors
84
+
85
+ - @imphil
86
+ - @j178
87
+
3
88
  ## 0.5.4
4
89
 
5
90
  Released on 2026-09-28.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <a href="https://trendshift.io/repositories/14578?utm_source=repository-badge&amp;utm_medium=badge&amp;utm_campaign=badge-repository-14578" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/14578" alt="j178%2Fprek | Trendshift" width="250" height="55"/></a>
9
9
 
10
- [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
10
+ [![prek](https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge.svg)](https://github.com/j178/prek)
11
11
  [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
12
12
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
13
13
  [![PyPI Downloads](https://static.pepy.tech/personalized-badge/prek?period=monthly&units=INTERNATIONAL_SYSTEM&left_color=GREY&right_color=BLUE&left_text=downloads%2Fmonth)](https://pepy.tech/projects/prek)
@@ -59,7 +59,7 @@ On Linux and macOS:
59
59
  <!-- --8<-- [start: linux-standalone-install] -->
60
60
 
61
61
  ```bash
62
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.4/prek-installer.sh | sh
62
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.6/prek-installer.sh | sh
63
63
  ```
64
64
 
65
65
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -69,7 +69,7 @@ On Windows:
69
69
  <!-- --8<-- [start: windows-standalone-install] -->
70
70
 
71
71
  ```powershell
72
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.5.4/prek-installer.ps1 | iex"
72
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.5.6/prek-installer.ps1 | iex"
73
73
  ```
74
74
 
75
75
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -152,7 +152,7 @@ cargo binstall prek
152
152
 
153
153
  <!-- --8<-- [start: cargo-install] -->
154
154
 
155
- Build from source using Cargo (Rust 1.96+ is required):
155
+ Build from source using Cargo (Rust 1.97+ is required):
156
156
 
157
157
  ```bash
158
158
  cargo install --locked prek
@@ -302,7 +302,7 @@ jobs:
302
302
  runs-on: ubuntu-latest
303
303
  steps:
304
304
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
305
- - uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
305
+ - uses: j178/prek-action@1382ad72dea72f9d53832f2bcb65b3e87a947204 # v3.0.1
306
306
  ```
307
307
 
308
308
  This action installs prek and runs `prek run --all-files` on your repository.
@@ -379,42 +379,42 @@ For more detailed improvements prek offers, take a look at [Difference from pre-
379
379
 
380
380
  ## Who is using prek?
381
381
 
382
- prek is pretty new, but it is already being used or recommended by some projects and organizations.
383
- GitHub stars are current as of April 15, 2026.
384
-
385
- - [apache/airflow](https://github.com/apache/airflow/issues/44995) <sub>45,050 stars</sub>
386
- - [apache/iggy](https://github.com/apache/iggy/pull/2383) <sub>4,116 stars</sub>
387
- - [apache/lucene](https://github.com/apache/lucene/pull/15629) <sub>3,401 stars</sub>
388
- - [ast-grep/ast-grep](https://github.com/ast-grep/ast-grep.github.io/commit/e30818144b2967a7f9172c8cf2f4596bba219bf5) <sub>13,413 stars</sub>
389
- - [astral-sh/ruff](https://github.com/astral-sh/ruff/pull/22505) <sub>47,070 stars</sub>
390
- - [astral-sh/ty](https://github.com/astral-sh/ty/pull/2469) <sub>18,308 stars</sub>
391
- - [authlib/authlib](https://github.com/authlib/authlib/pull/804) <sub>5,271 stars</sub>
392
- - [cachix/devenv](https://github.com/cachix/devenv/pull/2304) <sub>6,665 stars</sub>
393
- - [cocoindex-io/cocoindex](https://github.com/cocoindex-io/cocoindex/pull/1564) <sub>6,865 stars</sub>
394
- - [commitizen-tools/commitizen](https://github.com/commitizen-tools/commitizen) <sub>3,377 stars</sub>
395
- - [DetachHead/basedpyright](https://github.com/DetachHead/basedpyright/pull/1413) <sub>3,267 stars</sub>
396
- - [django/djangoproject.com](https://github.com/django/djangoproject.com/pull/2252) <sub>1,994 stars</sub>
397
- - [fastapi/asyncer](https://github.com/fastapi/asyncer/pull/437) <sub>2,407 stars</sub>
398
- - [fastapi/fastapi](https://github.com/fastapi/fastapi/pull/14572) <sub>97,209 stars</sub>
399
- - [fastapi/typer](https://github.com/fastapi/typer/pull/1453) <sub>19,210 stars</sub>
400
- - [Future-House/paper-qa](https://github.com/Future-House/paper-qa/pull/1098) <sub>8,377 stars</sub>
401
- - [getsentry/sentry](https://github.com/getsentry/sentry/pull/110808) <sub>43,639 stars</sub>
402
- - [godotengine/godot](https://github.com/godotengine/godot/pull/119150) <sub>110,312 stars</sub>
403
- - [home-assistant/core](https://github.com/home-assistant/core/pull/160427) <sub>86,029 stars</sub>
404
- - [jcrist/msgspec](https://github.com/jcrist/msgspec/pull/918) <sub>3,692 stars</sub>
405
- - [jlowin/fastmcp](https://github.com/jlowin/fastmcp/pull/2309) <sub>24,539 stars</sub>
406
- - [MoonshotAI/kimi-cli](https://github.com/MoonshotAI/kimi-cli/pull/535) <sub>7,800 stars</sub>
407
- - [openclaw/openclaw](https://github.com/openclaw/openclaw/pull/1720) <sub>357,512 stars</sub>
408
- - [OpenLineage/OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965) <sub>2,406 stars</sub>
409
- - [pdm-project/pdm](https://github.com/pdm-project/pdm/pull/3593) <sub>8,553 stars</sub>
410
- - [prowler-cloud/prowler](https://github.com/prowler-cloud/prowler/pull/10601) <sub>13,592 stars</sub>
411
- - [pyodide/pyodide](https://github.com/pyodide/pyodide/pull/6182) <sub>14,527 stars</sub>
412
- - [python-attrs/attrs](https://github.com/python-attrs/attrs/commit/c95b177682e76a63478d29d040f9cb36a8d31915) <sub>5,770 stars</sub>
413
- - [python-telegram-bot/python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/pull/5142) <sub>29,025 stars</sub>
414
- - [python/cpython](https://github.com/python/cpython/issues/143148) <sub>72,330 stars</sub>
415
- - [simple-icons/simple-icons](https://github.com/simple-icons/simple-icons/pull/14245) <sub>24,873 stars</sub>
416
-
417
- For a more comprehensive list of open-source projects using prek see the [list of dependents on github](https://github.com/j178/prek/network/dependents).
382
+ These projects use or recommend prek. Follow the links for adoption details.
383
+
384
+ | Project | Stars |
385
+ | -- | -: |
386
+ | [Apache Airflow](https://github.com/apache/airflow/pull/54258) | 47,116 |
387
+ | [Apache Iggy](https://github.com/apache/iggy/pull/2383) | 5,044 |
388
+ | [ast-grep](https://github.com/ast-grep/ast-grep.github.io/commit/e30818144b2967a7f9172c8cf2f4596bba219bf5) | 16,140 |
389
+ | [attrs](https://github.com/python-attrs/attrs/commit/c95b177682e76a63478d29d040f9cb36a8d31915) | 5,853 |
390
+ | [Authlib](https://github.com/authlib/authlib/pull/804) | 5,430 |
391
+ | [Cherry Studio](https://github.com/CherryHQ/cherry-studio/pull/12491) | 52,443 |
392
+ | [CocoIndex](https://github.com/cocoindex-io/cocoindex/pull/1564) | 11,651 |
393
+ | [CPython](https://github.com/python/cpython/pull/143149) | 77,561 |
394
+ | [devenv](https://github.com/cachix/devenv/pull/2304) | 7,721 |
395
+ | [FastAPI](https://github.com/fastapi/fastapi/pull/14572) | 102,873 |
396
+ | [FastMCP](https://github.com/PrefectHQ/fastmcp/pull/2309) | 28,011 |
397
+ | [Godot](https://github.com/godotengine/godot/pull/119150) | 118,258 |
398
+ | [Home Assistant](https://github.com/home-assistant/core/pull/160427) | 91,313 |
399
+ | [Kimi CLI](https://github.com/MoonshotAI/kimi-cli/pull/535) (archived) | 11,425 |
400
+ | [Matplotlib](https://github.com/matplotlib/matplotlib/pull/31081) | 23,341 |
401
+ | [msgspec](https://github.com/msgspec/msgspec/pull/918) | 4,155 |
402
+ | [OpenClaw](https://github.com/openclaw/openclaw/pull/1720) | 391,637 |
403
+ | [paper-qa](https://github.com/Future-House/paper-qa/pull/1098) | 9,329 |
404
+ | [PDM](https://github.com/pdm-project/pdm/blob/main/CONTRIBUTING.md) | 8,664 |
405
+ | [Pendulum](https://github.com/python-pendulum/pendulum/pull/946) | 6,677 |
406
+ | [Prowler](https://github.com/prowler-cloud/prowler/pull/10601) | 14,985 |
407
+ | [Pyodide](https://github.com/pyodide/pyodide/pull/6182) | 14,880 |
408
+ | [python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/pull/5142) | 29,515 |
409
+ | [RSSHub](https://github.com/DIYgod/RSSHub/blob/master/package.json) | 46,449 |
410
+ | [Ruff](https://github.com/astral-sh/ruff/pull/22505) | 49,936 |
411
+ | [Sentry](https://github.com/getsentry/sentry/pull/110808) | 45,507 |
412
+ | [Simple Icons](https://github.com/simple-icons/simple-icons/pull/14245) | 25,985 |
413
+ | [ty](https://github.com/astral-sh/ty/pull/2469) | 19,817 |
414
+ | [Typer](https://github.com/fastapi/typer/pull/1453) | 20,056 |
415
+ | [UltraJSON](https://github.com/ultrajson/ultrajson/pull/744) | 4,499 |
416
+
417
+ GitHub stars as of October 8, 2026. For more projects, see the [GitHub dependents list](https://github.com/j178/prek/network/dependents).
418
418
 
419
419
  <!-- --8<-- [end: why] -->
420
420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "description": "A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,14 +26,14 @@
26
26
  "LICENSE"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@j178/prek-darwin-arm64": "0.5.4",
30
- "@j178/prek-darwin-x64": "0.5.4",
31
- "@j178/prek-linux-arm64-gnu": "0.5.4",
32
- "@j178/prek-linux-arm64-musl": "0.5.4",
33
- "@j178/prek-android-arm64": "0.5.4",
34
- "@j178/prek-linux-x64-gnu": "0.5.4",
35
- "@j178/prek-linux-x64-musl": "0.5.4",
36
- "@j178/prek-win32-arm64-msvc": "0.5.4",
37
- "@j178/prek-win32-x64-msvc": "0.5.4"
29
+ "@j178/prek-darwin-arm64": "0.5.6",
30
+ "@j178/prek-darwin-x64": "0.5.6",
31
+ "@j178/prek-linux-arm64-gnu": "0.5.6",
32
+ "@j178/prek-linux-arm64-musl": "0.5.6",
33
+ "@j178/prek-android-arm64": "0.5.6",
34
+ "@j178/prek-linux-x64-gnu": "0.5.6",
35
+ "@j178/prek-linux-x64-musl": "0.5.6",
36
+ "@j178/prek-win32-arm64-msvc": "0.5.6",
37
+ "@j178/prek-win32-x64-msvc": "0.5.6"
38
38
  }
39
39
  }