@j178/prek 0.2.8 → 0.2.10

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,63 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.10
4
+
5
+ Released on 2025-10-18.
6
+
7
+ ### Enhancements
8
+
9
+ - Add `--fail-fast` CLI flag to stop after first hook failure ([#908](https://github.com/j178/prek/pull/908))
10
+ - Add collision detection for hook env directories ([#914](https://github.com/j178/prek/pull/914))
11
+ - Error out if not projects found ([#913](https://github.com/j178/prek/pull/913))
12
+ - Implement `check-xml` as builtin hook ([#894](https://github.com/j178/prek/pull/894))
13
+ - Implement `check-merge-conflict` as builtin hook ([#885](https://github.com/j178/prek/pull/885))
14
+ - Use line-by-line reading in `check-merge-conflict` ([#910](https://github.com/j178/prek/pull/910))
15
+
16
+ ### Bug fixes
17
+
18
+ - Fix pygrep hook env health check ([#921](https://github.com/j178/prek/pull/921))
19
+ - Group `pygrep` with `python` when installing pygrep hooks ([#920](https://github.com/j178/prek/pull/920))
20
+ - Ignore `.` prefixed directory when searching managed Python for pygrep ([#919](https://github.com/j178/prek/pull/919))
21
+
22
+ ### Documentation
23
+
24
+ - Add contribution guide ([#912](https://github.com/j178/prek/pull/912))
25
+
26
+ ### Other changes
27
+
28
+
29
+ ### Contributors
30
+
31
+ - @AdityasWorks
32
+ - @j178
33
+ - @kenwoodjw
34
+ - @lmmx
35
+
36
+ ## 0.2.9
37
+
38
+ Released on 2025-10-16.
39
+
40
+ ### Enhancements
41
+
42
+ - Lazily check hook env health ([#897](https://github.com/j178/prek/pull/897))
43
+ - Implement `check-symlinks` as builtin hook ([#895](https://github.com/j178/prek/pull/895))
44
+ - Implement `detect-private-key` as builtin hook ([#893](https://github.com/j178/prek/pull/893))
45
+
46
+ ### Bug fixes
47
+
48
+ - Download files to scratch directory to avoid cross-filesystem rename ([#889](https://github.com/j178/prek/pull/889))
49
+ - Fix golang hook install local dependencies ([#902](https://github.com/j178/prek/pull/902))
50
+ - Ignore the user-set `UV_MANAGED_PYTHON` ([#900](https://github.com/j178/prek/pull/900))
51
+
52
+ ### Other changes
53
+
54
+ - Add package metadata for cargo-binstall ([#882](https://github.com/j178/prek/pull/882))
55
+
56
+ ### Contributors
57
+
58
+ - @j178
59
+ - @lmmx
60
+
3
61
  ## 0.2.8
4
62
 
5
63
  Released on 2025-10-14.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # prek
4
4
 
5
- <img width="220" alt="prek" src="./docs/assets/logo_512.webp" />
5
+ <img width="220" alt="prek" src="./docs/assets/logo.webp" />
6
6
 
7
7
  [![CI](https://github.com/j178/prek/actions/workflows/ci.yml/badge.svg)](https://github.com/j178/prek/actions/workflows/ci.yml)
8
8
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
@@ -24,13 +24,13 @@ while also providing some additional long-requested features.
24
24
  > [!WARNING]
25
25
  > prek is not production-ready yet. Some subcommands and languages are not implemented. See the current gaps for drop-in parity: [TODO](https://prek.j178.dev/todo/).
26
26
  >
27
- > It's already being adopted by [some projects](#who-is-using-prek), please give it a try - we'd love your feedback!
27
+ > But it's already being adopted by [some projects](#who-is-using-prek) like Airflow, so please give it a try - we'd love your feedback!
28
28
 
29
29
  <!-- features:start -->
30
30
  ## Features
31
31
 
32
32
  - 🚀 A single binary with no dependencies, does not require Python or any other runtime.
33
- - ⚡ About [10x faster](https://prek.j178.dev/benchmark/) than `pre-commit` and uses only half the disk space.
33
+ - ⚡ [Faster](https://prek.j178.dev/benchmark/) than `pre-commit` and uses only half the disk space.
34
34
  - 🔄 Fully compatible with the original pre-commit configurations and hooks.
35
35
  - 🏗️ Built-in support for monorepos (i.e. [workspace mode](https://prek.j178.dev/workspace/)).
36
36
  - 🐍 Integration with [`uv`](https://github.com/astral-sh/uv) for managing Python virtual environments and dependencies.
@@ -60,9 +60,9 @@ For configuring `.pre-commit-config.yaml` and writing hooks, you can refer to th
60
60
  <!-- why:start -->
61
61
  ## Why prek?
62
62
 
63
- ### prek is way faster
63
+ ### prek is faster
64
64
 
65
- - It is about [10x faster](https://prek.j178.dev/benchmark/) than `pre-commit` and uses only half the disk space.
65
+ - It is [multiple times faster](https://prek.j178.dev/benchmark/) than `pre-commit` and takes up half the disk space.
66
66
  - It redesigned how hook environments and toolchains are managed, they are all shared between hooks, which reduces the disk space usage and speeds up the installation process.
67
67
  - Repositories are cloned in parallel, and hooks are installed in parallel if their dependencies are disjoint.
68
68
  - It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
@@ -108,7 +108,7 @@ On Linux and macOS:
108
108
 
109
109
  <!-- linux-standalone-install:start -->
110
110
  ```bash
111
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.8/prek-installer.sh | sh
111
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.10/prek-installer.sh | sh
112
112
  ```
113
113
  <!-- linux-standalone-install:end -->
114
114
 
@@ -116,7 +116,7 @@ On Windows:
116
116
 
117
117
  <!-- windows-standalone-install:start -->
118
118
  ```powershell
119
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.8/prek-installer.ps1 | iex"
119
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.10/prek-installer.ps1 | iex"
120
120
  ```
121
121
  <!-- windows-standalone-install:end -->
122
122
 
@@ -132,6 +132,9 @@ prek is published as Python binary wheel to PyPI, you can install it using `pip`
132
132
  # Using uv (recommended)
133
133
  uv tool install prek
134
134
 
135
+ # Using uvx (install and run in one command)
136
+ uvx prek
137
+
135
138
  # Using pip
136
139
  pip install prek
137
140
 
@@ -166,6 +169,19 @@ mise use prek
166
169
 
167
170
  </details>
168
171
 
172
+ <details>
173
+ <summary>Cargo binstall</summary>
174
+
175
+ <!-- cargo-binstall:start -->
176
+ Install pre-compiled binaries from GitHub using [cargo-binstall](https://github.com/cargo-bins/cargo-binstall):
177
+
178
+ ```bash
179
+ cargo binstall prek --git https://github.com/j178/prek
180
+ ```
181
+ <!-- cargo-binstall:end -->
182
+
183
+ </details>
184
+
169
185
  <details>
170
186
  <summary>Cargo</summary>
171
187
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "@j178/prek",
26
- "version": "0.2.8"
26
+ "version": "0.2.10"
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.8"
899
+ "version": "0.2.10"
900
900
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.8",
2
+ "artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.10",
3
3
  "author": "j178 <hi@j178.dev>",
4
4
  "bin": {
5
5
  "prek": "run-prek.js"
@@ -23,7 +23,7 @@
23
23
  "major": 2,
24
24
  "series": 31
25
25
  },
26
- "homepage": "https://github.com/j178/prek",
26
+ "homepage": "https://prek.j178.dev/",
27
27
  "license": "MIT",
28
28
  "name": "@j178/prek",
29
29
  "preferUnplugged": true,
@@ -224,7 +224,7 @@
224
224
  "zipExt": ".tar.gz"
225
225
  }
226
226
  },
227
- "version": "0.2.8",
227
+ "version": "0.2.10",
228
228
  "volta": {
229
229
  "node": "18.14.1",
230
230
  "npm": "9.5.0"