@j178/prek 0.3.5 → 0.3.7

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,72 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.7
4
+
5
+ Released on 2026-03-23.
6
+
7
+ ### Enhancements
8
+
9
+ - Add `pretty-format-json` as builtin hook ([#915](https://github.com/j178/prek/pull/915))
10
+ - Add `check-vcs-permalinks` as builtin hook ([#1842](https://github.com/j178/prek/pull/1842))
11
+ - Add `check-illegal-windows-names` as builtin hook ([#1841](https://github.com/j178/prek/pull/1841))
12
+ - Add `check-shebang-scripts-are-executable` builtin hook ([#1847](https://github.com/j178/prek/pull/1847))
13
+ - Add `destroyed-symlinks` builtin hook ([#1851](https://github.com/j178/prek/pull/1851))
14
+ - Add `file-contents-sorter` as builtin hook ([#1846](https://github.com/j178/prek/pull/1846))
15
+ - Add `--all` flag to `prek uninstall` ([#1817](https://github.com/j178/prek/pull/1817))
16
+ - Improve file pattern parse errors ([#1829](https://github.com/j178/prek/pull/1829))
17
+ - Validate `uv` binary after download ([#1825](https://github.com/j178/prek/pull/1825))
18
+
19
+ ### Bug fixes
20
+
21
+ - Fix workspace-relative added file paths ([#1852](https://github.com/j178/prek/pull/1852))
22
+ - Relax alias-anchor ratio check for check-yaml ([#1839](https://github.com/j178/prek/pull/1839))
23
+
24
+ ### Contributors
25
+
26
+ - @j178
27
+ - @mvanhorn
28
+ - @feliblo
29
+ - @Tiryoh
30
+
31
+ ## 0.3.6
32
+
33
+ Released on 2026-03-16.
34
+
35
+ ### Enhancements
36
+
37
+ - Allow selectors for hook ids containing colons ([#1782](https://github.com/j178/prek/pull/1782))
38
+ - Rename `prek install-hooks` to `prek prepare-hooks` and `prek install --install-hooks` to `prek install --prepare-hooks` ([#1766](https://github.com/j178/prek/pull/1766))
39
+ - Retry auth-failed repo clones with terminal prompts enabled ([#1761](https://github.com/j178/prek/pull/1761))
40
+
41
+ ### Performance
42
+
43
+ - Optimize `detect_private_key` by chunked reading and using aho-corasick ([#1791](https://github.com/j178/prek/pull/1791))
44
+ - Optimize `fix_byte_order_marker` by shifting file contents in place ([#1790](https://github.com/j178/prek/pull/1790))
45
+
46
+ ### Bug fixes
47
+
48
+ - Align stage defaulting behavior with pre-commit ([#1788](https://github.com/j178/prek/pull/1788))
49
+ - Make sure child output is drained in the PTY subprocess ([#1768](https://github.com/j178/prek/pull/1768))
50
+ - fix(golang): use `GOTOOLCHAIN=local` when probing system go ([#1797](https://github.com/j178/prek/pull/1797))
51
+
52
+ ### Documentation
53
+
54
+ - Disambiguate “hook” terminology by renaming "Git hooks" to "Git shims" ([#1776](https://github.com/j178/prek/pull/1776))
55
+ - Document compatibility with pre-commit ([#1767](https://github.com/j178/prek/pull/1767))
56
+ - Update configuration.md with TOML 1.1 notes ([#1764](https://github.com/j178/prek/pull/1764))
57
+
58
+ ### Other changes
59
+
60
+ - Sync latest identify tags ([#1798](https://github.com/j178/prek/pull/1798))
61
+
62
+ ### Contributors
63
+
64
+ - @github-actions
65
+ - @j178
66
+ - @pcastellazzi
67
+ - @deadnews
68
+ - @copilot-swe-agent
69
+
3
70
  ## 0.3.5
4
71
 
5
72
  Released on 2026-03-09.
package/README.md CHANGED
@@ -1,13 +1,11 @@
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
- <br/>prek
6
- </h1>
3
+ <img width="180" alt="prek" src="https://raw.githubusercontent.com/j178/prek/master/docs/assets/logo.webp" />
4
+ <h1>prek</h1>
7
5
 
8
6
  [![prek](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/j178/prek/master/docs/assets/badge-v0.json)](https://github.com/j178/prek)
7
+ [![PyPI version](https://img.shields.io/pypi/v/prek.svg)](https://pypi.python.org/pypi/prek)
9
8
  [![codecov](https://codecov.io/github/j178/prek/graph/badge.svg?token=MP6TY24F43)](https://codecov.io/github/j178/prek)
10
- [![GitHub Downloads](https://img.shields.io/github/downloads/j178/prek/total?logo=github)](https://github.com/j178/prek/releases)
11
9
  [![PyPI Downloads](https://img.shields.io/pypi/dm/prek?logo=python)](https://pepy.tech/projects/prek)
12
10
  [![Discord](https://img.shields.io/discord/1403581202102878289?logo=discord)](https://discord.gg/3NRJUqJz86)
13
11
 
@@ -63,7 +61,7 @@ On Linux and macOS:
63
61
  <!-- --8<-- [start: linux-standalone-install] -->
64
62
 
65
63
  ```bash
66
- curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.5/prek-installer.sh | sh
64
+ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.3.7/prek-installer.sh | sh
67
65
  ```
68
66
 
69
67
  <!-- --8<-- [end: linux-standalone-install] -->
@@ -73,7 +71,7 @@ On Windows:
73
71
  <!-- --8<-- [start: windows-standalone-install] -->
74
72
 
75
73
  ```powershell
76
- powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.5/prek-installer.ps1 | iex"
74
+ powershell -ExecutionPolicy ByPass -c "irm https://github.com/j178/prek/releases/download/v0.3.7/prek-installer.ps1 | iex"
77
75
  ```
78
76
 
79
77
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -306,7 +304,7 @@ jobs:
306
304
  runs-on: ubuntu-latest
307
305
  steps:
308
306
  - uses: actions/checkout@v6
309
- - uses: j178/prek-action@v1
307
+ - uses: j178/prek-action@v2
310
308
  ```
311
309
 
312
310
  This action installs prek and runs `prek run --all-files` on your repository.
@@ -330,7 +328,7 @@ prek self update
330
328
  ## Quick start
331
329
 
332
330
  - **I already use pre-commit:** follow the short migration checklist in the [quickstart guide](https://prek.j178.dev/quickstart/#already-using-pre-commit) to swap in `prek` safely.
333
- - **I'm new to pre-commit-style tools:** learn the basics—creating a config, running hooks, and installing git hooks—in the [beginner quickstart walkthrough](https://prek.j178.dev/quickstart/#new-to-pre-commit-style-workflows).
331
+ - **I'm new to pre-commit-style tools:** learn the basics—creating a config, running hooks, and installing Git shims—in the [beginner quickstart walkthrough](https://prek.j178.dev/quickstart/#new-to-pre-commit-style-workflows).
334
332
 
335
333
  <!-- --8<-- [start: why] -->
336
334
 
@@ -375,6 +373,7 @@ prek is pretty new, but it is already being used or recommend by some projects a
375
373
  - [astral-sh/ty](https://github.com/astral-sh/ty/pull/2469)
376
374
  - [openclaw/openclaw](https://github.com/openclaw/openclaw/pull/1720)
377
375
  - [home-assistant/core](https://github.com/home-assistant/core/pull/160427)
376
+ - [python-telegram-bot/python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot/pull/5142)
378
377
  - [DetachHead/basedpyright](https://github.com/DetachHead/basedpyright/pull/1413)
379
378
  - [OpenLineage/OpenLineage](https://github.com/OpenLineage/OpenLineage/pull/3965)
380
379
  - [authlib/authlib](https://github.com/authlib/authlib/pull/804)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/j178/prek/releases/download/v0.3.5"
3
+ "https://github.com/j178/prek/releases/download/v0.3.7"
4
4
  ],
5
5
  "author": "j178 <hi@j178.dev>",
6
6
  "bin": {
@@ -212,7 +212,7 @@
212
212
  "zipExt": ".tar.gz"
213
213
  }
214
214
  },
215
- "version": "0.3.5",
215
+ "version": "0.3.7",
216
216
  "volta": {
217
217
  "node": "18.14.1",
218
218
  "npm": "9.5.0"