@j178/prek 0.2.12 → 0.2.14
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 +75 -0
- package/README.md +27 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.14
|
|
4
|
+
|
|
5
|
+
Released on 2025-11-14.
|
|
6
|
+
|
|
7
|
+
### Enhancements
|
|
8
|
+
|
|
9
|
+
- Support `PREK_CONTAINER_RUNTIME=podman` to override container runtime ([#1033](https://github.com/j178/prek/pull/1033))
|
|
10
|
+
- Support rootless container runtime ([#1018](https://github.com/j178/prek/issues/1018))
|
|
11
|
+
- Support `language: unsupported` and `language: unsupported_script` introduced in pre-commit v4.4 ([#1073](https://github.com/j178/prek/pull/1073))
|
|
12
|
+
- Tweak to regex used for mountinfo ([#1037](https://github.com/j178/prek/pull/1037))
|
|
13
|
+
|
|
14
|
+
### Bug fixes
|
|
15
|
+
|
|
16
|
+
- Fix `--files` argument - files referencing other projects aren’t being filtered ([#1064](https://github.com/j178/prek/pull/1064))
|
|
17
|
+
- Unset `objectFormat` in `git init` ([#1048](https://github.com/j178/prek/pull/1048))
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
- Add scoop to installation ([#1067](https://github.com/j178/prek/pull/1067))
|
|
22
|
+
- Document workspace file visibility constraints ([#1071](https://github.com/j178/prek/pull/1071))
|
|
23
|
+
- Add `iceberg-python`, `msgspec` and `humanize` to "who is using prek" ([#1039](https://github.com/j178/prek/pull/1039), [#1042](https://github.com/j178/prek/pull/1042), [#1063](https://github.com/j178/prek/pull/1063))
|
|
24
|
+
|
|
25
|
+
### Other changes
|
|
26
|
+
|
|
27
|
+
- Add a hint to install when running inside a sub-project ([#1045](https://github.com/j178/prek/pull/1045))
|
|
28
|
+
- Add a hint to use `--refresh` when no configuration found ([#1046](https://github.com/j178/prek/pull/1046))
|
|
29
|
+
- Run uv pip install from the current directory ([#1069](https://github.com/j178/prek/pull/1069))
|
|
30
|
+
|
|
31
|
+
### Contributors
|
|
32
|
+
|
|
33
|
+
- @zzstoatzz
|
|
34
|
+
- @st1971
|
|
35
|
+
- @yihong0618
|
|
36
|
+
- @j178
|
|
37
|
+
- @copilot-swe-agent
|
|
38
|
+
- @idlsoft
|
|
39
|
+
|
|
40
|
+
## 0.2.13
|
|
41
|
+
|
|
42
|
+
Released on 2025-11-04.
|
|
43
|
+
|
|
44
|
+
### Enhancements
|
|
45
|
+
|
|
46
|
+
- Add Ruby support (no download support yet) ([#993](https://github.com/j178/prek/pull/993))
|
|
47
|
+
- Implement `check-executables-have-shebangs` as builtin-hook ([#924](https://github.com/j178/prek/pull/924))
|
|
48
|
+
- Improve container id detection ([#1031](https://github.com/j178/prek/pull/1031))
|
|
49
|
+
|
|
50
|
+
### Performance
|
|
51
|
+
|
|
52
|
+
- Optimize hot paths: reduce allocations ([#997](https://github.com/j178/prek/pull/997))
|
|
53
|
+
- Refactor `identify` using smallvec ([#982](https://github.com/j178/prek/pull/982))
|
|
54
|
+
|
|
55
|
+
### Bug fixes
|
|
56
|
+
|
|
57
|
+
- Fix YAML with nested merge keys ([#1020](https://github.com/j178/prek/pull/1020))
|
|
58
|
+
- Treat every file as executable on Windows to keep compatibility with pre-commit ([#980](https://github.com/j178/prek/pull/980))
|
|
59
|
+
|
|
60
|
+
### Documentation
|
|
61
|
+
|
|
62
|
+
- Document that .gitignore is respected by default during workspace discovery ([#983](https://github.com/j178/prek/pull/983))
|
|
63
|
+
- Update project stability status ([#1005](https://github.com/j178/prek/pull/1005))
|
|
64
|
+
- Add FastMCP to "who is using prek" ([#1034](https://github.com/j178/prek/pull/1034))
|
|
65
|
+
- Add attrs to "who is using prek" ([#981](https://github.com/j178/prek/pull/981))
|
|
66
|
+
|
|
67
|
+
### Contributors
|
|
68
|
+
|
|
69
|
+
- @my1e5
|
|
70
|
+
- @j178
|
|
71
|
+
- @zzstoatzz
|
|
72
|
+
- @lmmx
|
|
73
|
+
- @feliblo
|
|
74
|
+
- @yihong0618
|
|
75
|
+
- @st1971
|
|
76
|
+
- @is-alnilam
|
|
77
|
+
|
|
3
78
|
## 0.2.12
|
|
4
79
|
|
|
5
80
|
Released on 2025-10-27.
|
package/README.md
CHANGED
|
@@ -22,16 +22,16 @@ It is designed to be a faster, dependency-free and drop-in alternative for it,
|
|
|
22
22
|
while also providing some additional long-requested features.
|
|
23
23
|
<!-- description:end -->
|
|
24
24
|
|
|
25
|
-
> [!
|
|
26
|
-
> prek is
|
|
25
|
+
> [!NOTE]
|
|
26
|
+
> Although prek is pretty new, it’s already powering real‑world projects like [Airflow](https://github.com/apache/airflow), and more projects are picking it up—see [Who is using prek?](#who-is-using-prek). If you’re looking for an alternative to `pre-commit`, please give it a try—we’d love your feedback!
|
|
27
27
|
>
|
|
28
|
-
>
|
|
28
|
+
> Please note that some subcommands and languages are still missing for full drop‑in parity with `pre-commit`. Track the remaining gaps here: [TODO](https://prek.j178.dev/todo/).
|
|
29
29
|
|
|
30
30
|
<!-- features:start -->
|
|
31
31
|
## Features
|
|
32
32
|
|
|
33
33
|
- 🚀 A single binary with no dependencies, does not require Python or any other runtime.
|
|
34
|
-
- ⚡ [Faster](https://prek.j178.dev/benchmark/) than `pre-commit` and
|
|
34
|
+
- ⚡ [Faster](https://prek.j178.dev/benchmark/) than `pre-commit` and more efficient in disk space usage.
|
|
35
35
|
- 🔄 Fully compatible with the original pre-commit configurations and hooks.
|
|
36
36
|
- 🏗️ Built-in support for monorepos (i.e. [workspace mode](https://prek.j178.dev/workspace/)).
|
|
37
37
|
- 🐍 Integration with [`uv`](https://github.com/astral-sh/uv) for managing Python virtual environments and dependencies.
|
|
@@ -58,7 +58,7 @@ On Linux and macOS:
|
|
|
58
58
|
|
|
59
59
|
<!-- linux-standalone-install:start -->
|
|
60
60
|
```bash
|
|
61
|
-
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.
|
|
61
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.14/prek-installer.sh | sh
|
|
62
62
|
```
|
|
63
63
|
<!-- linux-standalone-install:end -->
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ On Windows:
|
|
|
66
66
|
|
|
67
67
|
<!-- windows-standalone-install:start -->
|
|
68
68
|
```powershell
|
|
69
|
-
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.
|
|
69
|
+
powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.2.14/prek-installer.ps1 | iex"
|
|
70
70
|
```
|
|
71
71
|
<!-- windows-standalone-install:end -->
|
|
72
72
|
|
|
@@ -175,14 +175,16 @@ prek --version
|
|
|
175
175
|
<summary>Nix</summary>
|
|
176
176
|
|
|
177
177
|
<!-- nix-install:start -->
|
|
178
|
-
prek is
|
|
178
|
+
prek is available via [Nixpkgs](https://search.nixos.org/packages?channel=unstable&show=prek&query=prek).
|
|
179
179
|
|
|
180
180
|
```shell
|
|
181
181
|
# Choose what's appropriate for your use case.
|
|
182
182
|
# One-off in a shell:
|
|
183
183
|
nix-shell -p prek
|
|
184
|
+
|
|
184
185
|
# NixOS or non-NixOS without flakes:
|
|
185
186
|
nix-env -iA nixos.prek
|
|
187
|
+
|
|
186
188
|
# Non-NixOS with flakes:
|
|
187
189
|
nix profile install nixpkgs#prek
|
|
188
190
|
```
|
|
@@ -194,7 +196,7 @@ nix profile install nixpkgs#prek
|
|
|
194
196
|
<summary>Conda</summary>
|
|
195
197
|
|
|
196
198
|
<!-- conda-forge-install:start -->
|
|
197
|
-
prek is
|
|
199
|
+
prek is available as `prek` via [conda-forge](https://anaconda.org/conda-forge/prek).
|
|
198
200
|
|
|
199
201
|
```shell
|
|
200
202
|
conda install conda-forge::prek
|
|
@@ -203,6 +205,18 @@ conda install conda-forge::prek
|
|
|
203
205
|
|
|
204
206
|
</details>
|
|
205
207
|
|
|
208
|
+
<details>
|
|
209
|
+
<summary>Scoop (Windows)</summary>
|
|
210
|
+
|
|
211
|
+
<!-- scoop-install:start -->
|
|
212
|
+
prek is available via [Scoop](https://scoop.sh/#/apps?q=prek).
|
|
213
|
+
|
|
214
|
+
```powershell
|
|
215
|
+
scoop install main/prek
|
|
216
|
+
```
|
|
217
|
+
<!-- scoop-install:end -->
|
|
218
|
+
</details>
|
|
219
|
+
|
|
206
220
|
<details>
|
|
207
221
|
<summary>GitHub Releases</summary>
|
|
208
222
|
|
|
@@ -287,6 +301,11 @@ prek is pretty new, but it is already being used or recommend by some projects a
|
|
|
287
301
|
- [PaperQA2](https://github.com/Future-House/paper-qa/pull/1098)
|
|
288
302
|
- [requests-cache](https://github.com/requests-cache/requests-cache/pull/1116)
|
|
289
303
|
- [kreuzberg](https://github.com/Goldziher/kreuzberg/pull/142)
|
|
304
|
+
- [attrs](https://github.com/python-attrs/attrs/commit/c95b177682e76a63478d29d040f9cb36a8d31915#diff-ef2cef9f88b4fe09ca3082140e67f5ad34fb65fb6e228f119d3812261ae51449)
|
|
305
|
+
- [FastMCP](https://github.com/jlowin/fastmcp/pull/2309)
|
|
306
|
+
- [iceberg-python](https://github.com/apache/iceberg-python/pull/2533)
|
|
307
|
+
- [msgspec](https://github.com/jcrist/msgspec/pull/918)
|
|
308
|
+
- [humanize](https://github.com/python-humanize/humanize/pull/276)
|
|
290
309
|
|
|
291
310
|
<!-- why:end -->
|
|
292
311
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"name": "@j178/prek",
|
|
26
|
-
"version": "0.2.
|
|
26
|
+
"version": "0.2.14"
|
|
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.
|
|
899
|
+
"version": "0.2.14"
|
|
900
900
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/j178/prek/releases/download/v0.2.14",
|
|
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.
|
|
227
|
+
"version": "0.2.14",
|
|
228
228
|
"volta": {
|
|
229
229
|
"node": "18.14.1",
|
|
230
230
|
"npm": "9.5.0"
|