@j178/prek 0.3.5 → 0.3.6

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,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.6
4
+
5
+ Released on 2026-03-16.
6
+
7
+ ### Enhancements
8
+
9
+ - Allow selectors for hook ids containing colons ([#1782](https://github.com/j178/prek/pull/1782))
10
+ - 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))
11
+ - Retry auth-failed repo clones with terminal prompts enabled ([#1761](https://github.com/j178/prek/pull/1761))
12
+
13
+ ### Performance
14
+
15
+ - Optimize `detect_private_key` by chunked reading and using aho-corasick ([#1791](https://github.com/j178/prek/pull/1791))
16
+ - Optimize `fix_byte_order_marker` by shifting file contents in place ([#1790](https://github.com/j178/prek/pull/1790))
17
+
18
+ ### Bug fixes
19
+
20
+ - Align stage defaulting behavior with pre-commit ([#1788](https://github.com/j178/prek/pull/1788))
21
+ - Make sure child output is drained in the PTY subprocess ([#1768](https://github.com/j178/prek/pull/1768))
22
+ - fix(golang): use `GOTOOLCHAIN=local` when probing system go ([#1797](https://github.com/j178/prek/pull/1797))
23
+
24
+ ### Documentation
25
+
26
+ - Disambiguate “hook” terminology by renaming "Git hooks" to "Git shims" ([#1776](https://github.com/j178/prek/pull/1776))
27
+ - Document compatibility with pre-commit ([#1767](https://github.com/j178/prek/pull/1767))
28
+ - Update configuration.md with TOML 1.1 notes ([#1764](https://github.com/j178/prek/pull/1764))
29
+
30
+ ### Other changes
31
+
32
+ - Sync latest identify tags ([#1798](https://github.com/j178/prek/pull/1798))
33
+
34
+ ### Contributors
35
+
36
+ - @github-actions
37
+ - @j178
38
+ - @pcastellazzi
39
+ - @deadnews
40
+ - @copilot-swe-agent
41
+
3
42
  ## 0.3.5
4
43
 
5
44
  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.6/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.6/prek-installer.ps1 | iex"
77
75
  ```
78
76
 
79
77
  <!-- --8<-- [end: windows-standalone-install] -->
@@ -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.6"
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.6",
216
216
  "volta": {
217
217
  "node": "18.14.1",
218
218
  "npm": "9.5.0"