@j178/prek 0.3.10 → 0.3.12

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,87 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.12
4
+
5
+ Released on 2026-05-05.
6
+
7
+ ### Highlights
8
+
9
+ `auto_update.cooldown_days` is now available in both the user-level global
10
+ config (`~/.config/prek/prek.toml` on Linux and macOS, or
11
+ `$XDG_CONFIG_HOME/prek/prek.toml` when set; `%APPDATA%\prek\prek.toml` on
12
+ Windows) and project config. Set a user default for `prek auto-update`, then
13
+ override it per project when a repository needs a different update cadence.
14
+
15
+ ```toml
16
+ [auto_update]
17
+ cooldown_days = 7
18
+ ```
19
+
20
+ ### Enhancements
21
+
22
+ - Add global auto-update cooldown config ([#2041](https://github.com/j178/prek/pull/2041))
23
+ - Add project auto-update cooldown config ([#2044](https://github.com/j178/prek/pull/2044))
24
+ - Support `language: dart` ([#1146](https://github.com/j178/prek/pull/1146))
25
+
26
+ ### Bug fixes
27
+
28
+ - Pass commit message file to workspace hooks ([#2043](https://github.com/j178/prek/pull/2043))
29
+ - Preserve non-UTF8 filenames from git ([#2023](https://github.com/j178/prek/pull/2023))
30
+ - ruby: put resolved Ruby's bin dir on `$PATH` for `gem` invocations ([#2021](https://github.com/j178/prek/pull/2021))
31
+
32
+ ### Documentation
33
+
34
+ - Update docs with the new logo and icon ([#2025](https://github.com/j178/prek/pull/2025))
35
+ - Point schema docs to SchemaStore ([#2039](https://github.com/j178/prek/pull/2039))
36
+
37
+ ### Contributors
38
+
39
+ - @j178
40
+ - @xiaoyanli-lyft
41
+ - @Lutra-Fs
42
+
43
+ ## 0.3.11
44
+
45
+ Released on 2026-04-27.
46
+
47
+ ### Highlights
48
+
49
+ Hook entries now have an explicit `shell` option for shell snippets. Set
50
+ `shell: sh`, `bash`, `pwsh`, `powershell`, or `cmd` when an entry should be
51
+ evaluated by that shell; leaving it unset keeps prek's direct argv execution.
52
+
53
+ `prek auto-update` can now filter tag candidates before choosing an update.
54
+ Both options take glob patterns: use `--include-tag` to only consider matching
55
+ tag names, and `--exclude-tag` to skip matching tags such as moving tags or
56
+ prereleases.
57
+
58
+ ### Enhancements
59
+
60
+ - Add `auto-update --exclude-repo <repo>` to skip repos ([#1983](https://github.com/j178/prek/pull/1983))
61
+ - Add `auto-update --exit-code` to exit with non-zero on updates ([#2002](https://github.com/j178/prek/pull/2002))
62
+ - Add `auto-update --include-tag <pattern>`/`--exclude-tag <pattern>` to filter tags ([#1984](https://github.com/j178/prek/pull/1984))
63
+ - Adds an explicit `shell` hook option for entries that should run as shell source ([#2004](https://github.com/j178/prek/pull/2004))
64
+ - Make `--hook-dir` optional for hook-impl ([#1989](https://github.com/j178/prek/pull/1989))
65
+ - Skip shim warning when `--script-version` is missing ([#1990](https://github.com/j178/prek/pull/1990))
66
+
67
+ ### Bug fixes
68
+
69
+ - Install Ruby executable in gem bin ([#2017](https://github.com/j178/prek/pull/2017))
70
+ - Use dedicated Android npm package ([#1982](https://github.com/j178/prek/pull/1982))
71
+ - Use stable repo keys without breaking cached clones ([#1995](https://github.com/j178/prek/pull/1995))
72
+
73
+ ### Documentation
74
+
75
+ - Explain prek name ([#1980](https://github.com/j178/prek/pull/1980))
76
+ - Clarify `pass_filenames` concurrency docs ([#1999](https://github.com/j178/prek/pull/1999))
77
+ - Reorganize documentation references ([#2005](https://github.com/j178/prek/pull/2005))
78
+ - Clarify hook author manifest env docs ([#1991](https://github.com/j178/prek/pull/1991))
79
+ - docs: add Sentry to users list ([#1981](https://github.com/j178/prek/pull/1981))
80
+
81
+ ### Contributors
82
+
83
+ - @j178
84
+
3
85
  ## 0.3.10
4
86
 
5
87
  Released on 2026-04-21.
package/README.md CHANGED
@@ -1,11 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- <h1>
4
- <img width="180" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.webp" />
5
-
6
- prek
7
-
8
- </h1>
3
+ <img width="600" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.png" />
9
4
 
10
5
  [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
11
6
  [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
@@ -65,7 +60,7 @@ On Linux and macOS:
65
60
  <!-- --8<-- [start: linux-standalone-install] -->
66
61
 
67
62
  ```bash
68
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.10/prek-installer.sh | sh
63
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.12/prek-installer.sh | sh
69
64
  ```
70
65
 
71
66
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -75,7 +70,7 @@ On Windows:
75
70
  <!-- --8<-- [start: windows-standalone-install] -->
76
71
 
77
72
  ```powershell
78
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.10/prek-installer.ps1 | iex"
73
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.12/prek-installer.ps1 | iex"
79
74
  ```
80
75
 
81
76
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -357,7 +352,7 @@ prek self update
357
352
 
358
353
  - It is [multiple times faster](https://prek.j178.dev/benchmark/) than `pre-commit` while also using less disk space.
359
354
  - Hook environments and toolchains are shared across hooks instead of being duplicated per repository, which reduces both install time and cache size.
360
- - Repositories are fetched in parallel, hook environments are prepared in parallel when their dependencies do not overlap, and hooks can run concurrently by [`priority`](https://prek.j178.dev/configuration/#priority).
355
+ - Repositories are fetched in parallel, hook environments are prepared in parallel when their dependencies do not overlap, and hooks can run concurrently by [`priority`](https://prek.j178.dev/reference/configuration/#priority).
361
356
  - It uses [`uv`](https://github.com/astral-sh/uv) for creating Python virtualenvs and installing dependencies, which is known for its speed and efficiency.
362
357
  - It implements some common hooks in Rust as [builtins](https://prek.j178.dev/builtin/), which are faster than their Python counterparts.
363
358
  - It supports `repo: builtin` for offline, zero-setup hooks, which is not available in `pre-commit`.
@@ -366,17 +361,17 @@ prek self update
366
361
 
367
362
  - No need to install Python or any other runtime just to use `prek`; it is a single binary.
368
363
  - `prek` automatically installs the toolchains it needs for supported languages, so you spend less time managing Python versions, Node runtimes, Ruby installs, and similar setup.
369
- - It supports native [`prek.toml`](https://prek.j178.dev/configuration/) in addition to pre-commit YAML, and [`prek util yaml-to-toml`](https://prek.j178.dev/cli/#prek-util-yaml-to-toml) helps migrate existing configs.
364
+ - It supports native [`prek.toml`](https://prek.j178.dev/configuration/) in addition to pre-commit YAML, and [`prek util yaml-to-toml`](https://prek.j178.dev/reference/cli/#prek-util-yaml-to-toml) helps migrate existing configs.
370
365
  - Built-in support for [workspaces](https://prek.j178.dev/workspace/) means monorepos can keep separate configs per project and still run everything from one command.
371
- - [`prek install`](https://prek.j178.dev/cli/#prek-install) and [`prek uninstall`](https://prek.j178.dev/cli/#prek-uninstall) honor repo-local and worktree-local `core.hooksPath`.
372
- - [`prek run`](https://prek.j178.dev/cli/#prek-run) supports selecting or skipping multiple projects or hooks in workspace mode, instead of only accepting a single optional hook id, and adds quality-of-life improvements such as `--dry-run`, `--directory`, `--last-commit`, and `--no-fail-fast`.
373
- - [`prek list`](https://prek.j178.dev/cli/#prek-list), [`prek util identify`](https://prek.j178.dev/cli/#prek-util-identify), and [`prek util list-builtins`](https://prek.j178.dev/cli/#prek-util-list-builtins) make it easier to inspect configured hooks, debug file matching, and discover builtins.
366
+ - [`prek install`](https://prek.j178.dev/reference/cli/#prek-install) and [`prek uninstall`](https://prek.j178.dev/reference/cli/#prek-uninstall) honor repo-local and worktree-local `core.hooksPath`.
367
+ - [`prek run`](https://prek.j178.dev/reference/cli/#prek-run) supports selecting or skipping multiple projects or hooks in workspace mode, instead of only accepting a single optional hook id, and adds quality-of-life improvements such as `--dry-run`, `--directory`, `--last-commit`, and `--no-fail-fast`.
368
+ - [`prek list`](https://prek.j178.dev/reference/cli/#prek-list), [`prek util identify`](https://prek.j178.dev/reference/cli/#prek-util-identify), and [`prek util list-builtins`](https://prek.j178.dev/reference/cli/#prek-util-list-builtins) make it easier to inspect configured hooks, debug file matching, and discover builtins.
374
369
 
375
370
  ### prek includes security-focused safeguards
376
371
 
377
- - [`prek auto-update`](https://prek.j178.dev/cli/#prek-auto-update) supports `--cooldown-days`, so you can keep newly published releases on hold for a cooling-off period before adopting them.
378
- - [`prek auto-update`](https://prek.j178.dev/cli/#prek-auto-update) validates pinned SHA revisions against the fetched upstream refs, including impostor-commit detection, and keeps `# frozen:` comments in sync with the configured commit.
379
- - [`prek auto-update --check`](https://prek.j178.dev/cli/#prek-auto-update--check) is useful in CI when you want updates or frozen-reference mismatches to fail the job without rewriting the config.
372
+ - [`prek auto-update`](https://prek.j178.dev/reference/cli/#prek-auto-update) supports `--cooldown-days`, so you can keep newly published releases on hold for a cooling-off period before adopting them.
373
+ - [`prek auto-update`](https://prek.j178.dev/reference/cli/#prek-auto-update) validates pinned SHA revisions against the fetched upstream refs, including impostor-commit detection, and keeps `# frozen:` comments in sync with the configured commit.
374
+ - [`prek auto-update --check`](https://prek.j178.dev/reference/cli/#prek-auto-update--check) is useful in CI when you want updates or frozen-reference mismatches to fail the job without rewriting the config.
380
375
 
381
376
  For more detailed improvements prek offers, take a look at [Difference from pre-commit](https://prek.j178.dev/diff/).
382
377
 
@@ -415,6 +410,7 @@ GitHub stars are current as of April 15, 2026.
415
410
  - [cachix/devenv](https://github.com/cachix/devenv/pull/2304) <sub>6,665 stars</sub>
416
411
  - [pyodide/pyodide](https://github.com/pyodide/pyodide/pull/6182) <sub>14,527 stars</sub>
417
412
  - [prowler-cloud/prowler](https://github.com/prowler-cloud/prowler/pull/10601) <sub>13,592 stars</sub>
413
+ - [getsentry/sentry](https://github.com/getsentry/sentry/pull/110808) <sub>43,639 stars</sub>
418
414
 
419
415
  <!-- --8<-- [end: why] -->
420
416
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@j178/prek",
3
- "version": "0.3.10",
4
- "description": "A Git hook manager written in Rust, designed as a drop-in alternative to pre-commit.",
3
+ "version": "0.3.12",
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": {
7
7
  "type": "git",
@@ -26,21 +26,22 @@
26
26
  "LICENSE"
27
27
  ],
28
28
  "optionalDependencies": {
29
- "@j178/prek-darwin-arm64": "0.3.10",
30
- "@j178/prek-darwin-x64": "0.3.10",
31
- "@j178/prek-linux-arm64-gnu": "0.3.10",
32
- "@j178/prek-linux-arm64-musl": "0.3.10",
33
- "@j178/prek-linux-arm-gnueabihf": "0.3.10",
34
- "@j178/prek-linux-arm-musleabihf": "0.3.10",
35
- "@j178/prek-linux-armv7-musleabihf": "0.3.10",
36
- "@j178/prek-linux-ia32-gnu": "0.3.10",
37
- "@j178/prek-linux-ia32-musl": "0.3.10",
38
- "@j178/prek-linux-riscv64-gnu": "0.3.10",
39
- "@j178/prek-linux-s390x-gnu": "0.3.10",
40
- "@j178/prek-linux-x64-gnu": "0.3.10",
41
- "@j178/prek-linux-x64-musl": "0.3.10",
42
- "@j178/prek-win32-arm64-msvc": "0.3.10",
43
- "@j178/prek-win32-ia32-msvc": "0.3.10",
44
- "@j178/prek-win32-x64-msvc": "0.3.10"
29
+ "@j178/prek-darwin-arm64": "0.3.12",
30
+ "@j178/prek-darwin-x64": "0.3.12",
31
+ "@j178/prek-linux-arm64-gnu": "0.3.12",
32
+ "@j178/prek-linux-arm64-musl": "0.3.12",
33
+ "@j178/prek-android-arm64": "0.3.12",
34
+ "@j178/prek-linux-arm-gnueabihf": "0.3.12",
35
+ "@j178/prek-linux-arm-musleabihf": "0.3.12",
36
+ "@j178/prek-linux-armv7-musleabihf": "0.3.12",
37
+ "@j178/prek-linux-ia32-gnu": "0.3.12",
38
+ "@j178/prek-linux-ia32-musl": "0.3.12",
39
+ "@j178/prek-linux-riscv64-gnu": "0.3.12",
40
+ "@j178/prek-linux-s390x-gnu": "0.3.12",
41
+ "@j178/prek-linux-x64-gnu": "0.3.12",
42
+ "@j178/prek-linux-x64-musl": "0.3.12",
43
+ "@j178/prek-win32-arm64-msvc": "0.3.12",
44
+ "@j178/prek-win32-ia32-msvc": "0.3.12",
45
+ "@j178/prek-win32-x64-msvc": "0.3.12"
45
46
  }
46
47
  }
package/platforms.json CHANGED
@@ -45,6 +45,17 @@
45
45
  ],
46
46
  "libc": "musl"
47
47
  },
48
+ {
49
+ "rustTarget": "aarch64-unknown-linux-musl",
50
+ "packageName": "@j178/prek-android-arm64",
51
+ "binaryName": "prek",
52
+ "os": [
53
+ "android"
54
+ ],
55
+ "cpu": [
56
+ "arm64"
57
+ ]
58
+ },
48
59
  {
49
60
  "rustTarget": "armv7-unknown-linux-gnueabihf",
50
61
  "packageName": "@j178/prek-linux-arm-gnueabihf",