@j178/prek 0.2.17 → 0.2.19
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 +53 -0
- package/README.md +6 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,58 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.19
|
|
4
|
+
|
|
5
|
+
Released on 2025-11-26.
|
|
6
|
+
|
|
7
|
+
### Performance
|
|
8
|
+
|
|
9
|
+
- Simplify `fix_byte_order_marker` hook ([#1136](https://github.com/j178/prek/pull/1136))
|
|
10
|
+
- Simplify `trailing-whitespace` hook to improve performance ([#1135](https://github.com/j178/prek/pull/1135))
|
|
11
|
+
|
|
12
|
+
### Bug fixes
|
|
13
|
+
|
|
14
|
+
- Close stdin for hook subcommands ([#1155](https://github.com/j178/prek/pull/1155))
|
|
15
|
+
- Fix parsing Python interpreter info containing non-UTF8 chars ([#1141](https://github.com/j178/prek/pull/1141))
|
|
16
|
+
|
|
17
|
+
### Contributors
|
|
18
|
+
|
|
19
|
+
- @chilin0525
|
|
20
|
+
- @nblock
|
|
21
|
+
- @j178
|
|
22
|
+
|
|
23
|
+
## 0.2.18
|
|
24
|
+
|
|
25
|
+
Released on 2025-11-21.
|
|
26
|
+
|
|
27
|
+
### Highlights
|
|
28
|
+
|
|
29
|
+
In this release, prek adds a new special repo type `repo: builtin` that lets you use built‑in hooks.
|
|
30
|
+
It basically gives you another way to use the existing built‑in fast path for pre‑commit‑hooks, but without needing to point to an external repo.
|
|
31
|
+
Since prek doesn’t have to clone anything or set up a virtual environment, `repo: builtin` hooks work even in air‑gapped environments.
|
|
32
|
+
|
|
33
|
+
For more details, see: https://prek.j178.dev/builtin/
|
|
34
|
+
|
|
35
|
+
### Enhancements
|
|
36
|
+
|
|
37
|
+
- Add support `repo: builtin` ([#1118](https://github.com/j178/prek/pull/1118))
|
|
38
|
+
- Enable virtual terminal processing on Windows ([#1123](https://github.com/j178/prek/pull/1123))
|
|
39
|
+
|
|
40
|
+
### Bug fixes
|
|
41
|
+
|
|
42
|
+
- Do not recurse into submodules during workspace discovery ([#1121](https://github.com/j178/prek/pull/1121))
|
|
43
|
+
- Do not dim the hook output ([#1126](https://github.com/j178/prek/pull/1126))
|
|
44
|
+
- Further reduce max cli length for cmd.exe on Windows ([#1131](https://github.com/j178/prek/pull/1131))
|
|
45
|
+
- Revert "Disallow hook-level `minimum_prek_version` (#1101)" ([#1120](https://github.com/j178/prek/pull/1120))
|
|
46
|
+
|
|
47
|
+
### Other changes
|
|
48
|
+
|
|
49
|
+
- docs: refer airflow as Apache Airflow ([#1116](https://github.com/j178/prek/pull/1116))
|
|
50
|
+
|
|
51
|
+
### Contributors
|
|
52
|
+
|
|
53
|
+
- @j178
|
|
54
|
+
- @Lee-W
|
|
55
|
+
|
|
3
56
|
## 0.2.17
|
|
4
57
|
|
|
5
58
|
Released on 2025-11-18.
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ while also providing some additional long-requested features.
|
|
|
23
23
|
<!-- description:end -->
|
|
24
24
|
|
|
25
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!
|
|
26
|
+
> Although prek is pretty new, it’s already powering real‑world projects like [Apache 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
|
|
|
@@ -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.19/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.19/prek-installer.ps1 | iex"
|
|
70
70
|
```
|
|
71
71
|
<!-- windows-standalone-install:end -->
|
|
72
72
|
|
|
@@ -273,6 +273,7 @@ prek self update
|
|
|
273
273
|
- Repositories are cloned in parallel, and hooks are installed in parallel if their dependencies are disjoint.
|
|
274
274
|
- It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
|
|
275
275
|
- It implements some common hooks in Rust, [built in prek](https://prek.j178.dev/builtin/), which are faster than their Python counterparts.
|
|
276
|
+
- It supports `repo: builtin` for offline, zero-setup hooks, which is not available in `pre-commit`.
|
|
276
277
|
|
|
277
278
|
### prek provides a better user experience
|
|
278
279
|
|
|
@@ -292,7 +293,7 @@ For more detailed improvements prek offers, take a look at [Difference from pre-
|
|
|
292
293
|
|
|
293
294
|
prek is pretty new, but it is already being used or recommend by some projects and organizations:
|
|
294
295
|
|
|
295
|
-
- [Airflow](https://github.com/apache/airflow/issues/44995)
|
|
296
|
+
- [Apache Airflow](https://github.com/apache/airflow/issues/44995)
|
|
296
297
|
- [PDM](https://github.com/pdm-project/pdm/pull/3593)
|
|
297
298
|
- [basedpyright](https://github.com/DetachHead/basedpyright/pull/1413)
|
|
298
299
|
- [OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965)
|
|
@@ -306,6 +307,7 @@ prek is pretty new, but it is already being used or recommend by some projects a
|
|
|
306
307
|
- [iceberg-python](https://github.com/apache/iceberg-python/pull/2533)
|
|
307
308
|
- [msgspec](https://github.com/jcrist/msgspec/pull/918)
|
|
308
309
|
- [humanize](https://github.com/python-humanize/humanize/pull/276)
|
|
310
|
+
- [nf-core](https://github.com/nf-core/tools/pull/3899)
|
|
309
311
|
|
|
310
312
|
<!-- why:end -->
|
|
311
313
|
|
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.19"
|
|
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.19"
|
|
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.19",
|
|
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.19",
|
|
228
228
|
"volta": {
|
|
229
229
|
"node": "18.14.1",
|
|
230
230
|
"npm": "9.5.0"
|