@j178/prek 0.2.18 → 0.2.20

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,79 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.20
4
+
5
+ Released on 2025-12-08.
6
+
7
+ ### Highlights
8
+
9
+ In this release:
10
+
11
+ - Rust hooks are now fully supported with automatic toolchain management, including package discovery in virtual workspaces. Big thanks to @lmmx for driving this.
12
+ - Added a `prek cache size` subcommand so you can quickly see how much cache space prek is using. Thanks @MatthewMckee4!
13
+ - Nested workspaces are easier to reason about: set `orphan: true` on a project to isolate it from parents so its files are processed only once.
14
+
15
+ Want to show your project runs on prek? Add our README badge to your docs or repo homepage: [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
16
+
17
+ ### Enhancements
18
+
19
+ - Support Rust language ([#989](https://github.com/j178/prek/pull/989))
20
+
21
+ - Refactor Rust toolchain management ([#1198](https://github.com/j178/prek/pull/1198))
22
+ - Add support for finding packages in virtual workspaces ([#1180](https://github.com/j178/prek/pull/1180))
23
+
24
+ - Add `prek cache size` command ([#1183](https://github.com/j178/prek/pull/1183))
25
+ - Support orphan projects ([#1129](https://github.com/j178/prek/pull/1129))
26
+ - Fallback to `manual` stage for hooks specified directly in command line ([#1185](https://github.com/j178/prek/pull/1185))
27
+ - Make go module cache read-writeable (thus deletable) ([#1164](https://github.com/j178/prek/pull/1164))
28
+ - Provide more information when validating configs and manifests ([#1182](https://github.com/j178/prek/pull/1182))
29
+ - Improve error message for invalid number of arguments to hook-impl ([#1196](https://github.com/j178/prek/pull/1196))
30
+
31
+ ### Bug fixes
32
+
33
+ - Disable git terminal prompts ([#1193](https://github.com/j178/prek/pull/1193))
34
+ - Prevent `post-checkout` deadlock when cloning repos ([#1192](https://github.com/j178/prek/pull/1192))
35
+ - Prevent color output when redirecting stdout to a file ([#1159](https://github.com/j178/prek/pull/1159))
36
+
37
+ ### Documentation
38
+
39
+ - Add MacPorts to installation methods ([#1157](https://github.com/j178/prek/pull/1157))
40
+ - Add a FAQ page explaining `prek install --install--hooks` ([#1162](https://github.com/j178/prek/pull/1162))
41
+
42
+ ### Other changes
43
+
44
+ - Add `prek: enabled` repo badge ([#1171](https://github.com/j178/prek/pull/1171))
45
+ - Add favicon for docs website ([#1187](https://github.com/j178/prek/pull/1187))
46
+
47
+ ### Contributors
48
+
49
+ - @MatthewMckee4
50
+ - @lmmx
51
+ - @j178
52
+ - @joshmarkovic
53
+ - @frazar
54
+ - @jmelahman
55
+ - @drainpixie
56
+
57
+ ## 0.2.19
58
+
59
+ Released on 2025-11-26.
60
+
61
+ ### Performance
62
+
63
+ - Simplify `fix_byte_order_marker` hook ([#1136](https://github.com/j178/prek/pull/1136))
64
+ - Simplify `trailing-whitespace` hook to improve performance ([#1135](https://github.com/j178/prek/pull/1135))
65
+
66
+ ### Bug fixes
67
+
68
+ - Close stdin for hook subcommands ([#1155](https://github.com/j178/prek/pull/1155))
69
+ - Fix parsing Python interpreter info containing non-UTF8 chars ([#1141](https://github.com/j178/prek/pull/1141))
70
+
71
+ ### Contributors
72
+
73
+ - @chilin0525
74
+ - @nblock
75
+ - @j178
76
+
3
77
  ## 0.2.18
4
78
 
5
79
  Released on 2025-11-21.
package/README.md CHANGED
@@ -5,6 +5,7 @@
5
5
  <br/>prek
6
6
  </h1>
7
7
 
8
+ [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
8
9
  [![CI](https://github.com/j178/prek/actions/workflows/ci.yml/badge.svg)](https://github.com/j178/prek/actions/workflows/ci.yml)
9
10
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
10
11
  [![GitHub Downloads](https://img.shields.io/github/downloads/j178/prek/total?logo=github)](https://github.com/j178/prek/releases)
@@ -58,7 +59,7 @@ On Linux and macOS:
58
59
 
59
60
  <!-- linux-standalone-install:start -->
60
61
  ```bash
61
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.18/prek-installer.sh | sh
62
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.20/prek-installer.sh | sh
62
63
  ```
63
64
  <!-- linux-standalone-install:end -->
64
65
 
@@ -66,7 +67,7 @@ On Windows:
66
67
 
67
68
  <!-- windows-standalone-install:start -->
68
69
  ```powershell
69
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.18/prek-installer.ps1 | iex"
70
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.20/prek-installer.ps1 | iex"
70
71
  ```
71
72
  <!-- windows-standalone-install:end -->
72
73
 
@@ -217,6 +218,18 @@ scoop install main/prek
217
218
  <!-- scoop-install:end -->
218
219
  </details>
219
220
 
221
+ <details>
222
+ <summary>MacPorts</summary>
223
+
224
+ <!-- macports-install:start -->
225
+ prek is available via [MacPorts](https://ports.macports.org/port/prek/).
226
+
227
+ ```bash
228
+ sudo port install prek
229
+ ```
230
+ <!-- macports-install:end -->
231
+ </details>
232
+
220
233
  <details>
221
234
  <summary>GitHub Releases</summary>
222
235
 
@@ -307,6 +320,7 @@ prek is pretty new, but it is already being used or recommend by some projects a
307
320
  - [iceberg-python](https://github.com/apache/iceberg-python/pull/2533)
308
321
  - [msgspec](https://github.com/jcrist/msgspec/pull/918)
309
322
  - [humanize](https://github.com/python-humanize/humanize/pull/276)
323
+ - [nf-core](https://github.com/nf-core/tools/pull/3899)
310
324
 
311
325
  <!-- why:end -->
312
326
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.2.18"
26
+ "version": "0.2.20"
27
27
  },
28
28
  "node_modules/@isaacs/balanced-match": {
29
29
  "engines": {
@@ -896,5 +896,5 @@
896
896
  }
897
897
  },
898
898
  "requires": true,
899
- "version": "0.2.18"
899
+ "version": "0.2.20"
900
900
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.18",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.20",
3
3
  "author": "j178 <hi@j178.dev>",
4
4
  "bin": {
5
5
  "prek": "run-prek.js"
@@ -224,7 +224,7 @@
224
224
  "zipExt": ".tar.gz"
225
225
  }
226
226
  },
227
- "version": "0.2.18",
227
+ "version": "0.2.20",
228
228
  "volta": {
229
229
  "node": "18.14.1",
230
230
  "npm": "9.5.0"