@j178/prek 0.2.5 → 0.2.8
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/.gitignore +2 -0
- package/CHANGELOG.md +937 -0
- package/LICENSE +21 -0
- package/README.md +40 -8
- package/binary-install.js +212 -0
- package/binary.js +126 -0
- package/install.js +2 -123
- package/npm-shrinkwrap.json +900 -0
- package/package.json +222 -41
- package/run-prek.js +4 -0
- package/prek.js +0 -37
- package/utils.js +0 -87
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,937 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.8
|
|
4
|
+
|
|
5
|
+
Released on 2025-10-14.
|
|
6
|
+
|
|
7
|
+
*This is a re-release of 0.2.6 that fixes an issue where publishing to npmjs.com failed.*
|
|
8
|
+
|
|
9
|
+
### Enhancements
|
|
10
|
+
|
|
11
|
+
- Publish prek to npmjs.com ([#819](https://github.com/j178/prek/pull/819))
|
|
12
|
+
- Support YAML merge keys in `.pre-commit-config.yaml` ([#871](https://github.com/j178/prek/pull/871))
|
|
13
|
+
|
|
14
|
+
### Bug fixes
|
|
15
|
+
|
|
16
|
+
- Use relative path with `--cd` in the generated hook script ([#868](https://github.com/j178/prek/pull/868))
|
|
17
|
+
- Fix autoupdate `rev` rendering for "float-like" version numbers ([#867](https://github.com/j178/prek/pull/867))
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
- Add Nix and Conda installation details ([#874](https://github.com/j178/prek/pull/874))
|
|
22
|
+
|
|
23
|
+
### Contributors
|
|
24
|
+
|
|
25
|
+
- @mondeja
|
|
26
|
+
- @j178
|
|
27
|
+
- @bbannier
|
|
28
|
+
- @yihong0618
|
|
29
|
+
- @colindean
|
|
30
|
+
|
|
31
|
+
## 0.2.5
|
|
32
|
+
|
|
33
|
+
Released on 2025-10-10.
|
|
34
|
+
|
|
35
|
+
### Enhancements
|
|
36
|
+
|
|
37
|
+
- Implement `prek try-repo` ([#797](https://github.com/j178/prek/pull/797))
|
|
38
|
+
- Add fallback mechanism for prek executable in git hooks ([#850](https://github.com/j178/prek/pull/850))
|
|
39
|
+
- Ignore config error if the directory is skipped ([#860](https://github.com/j178/prek/pull/860))
|
|
40
|
+
|
|
41
|
+
### Bug fixes
|
|
42
|
+
|
|
43
|
+
- Fix panic when parse config failed ([#859](https://github.com/j178/prek/pull/859))
|
|
44
|
+
|
|
45
|
+
### Other changes
|
|
46
|
+
|
|
47
|
+
- Add a Dockerfile ([#852](https://github.com/j178/prek/pull/852))
|
|
48
|
+
|
|
49
|
+
### Contributors
|
|
50
|
+
|
|
51
|
+
- @j178
|
|
52
|
+
- @luizvbo
|
|
53
|
+
|
|
54
|
+
## 0.2.4
|
|
55
|
+
|
|
56
|
+
Released on 2025-10-07.
|
|
57
|
+
|
|
58
|
+
### Enhancements
|
|
59
|
+
|
|
60
|
+
- Add support for `.prekignore` to ignore directories from project discovery ([#826](https://github.com/j178/prek/pull/826))
|
|
61
|
+
- Make `prek auto-update --jobs` default to 0 (which uses max available parallelism) ([#833](https://github.com/j178/prek/pull/833))
|
|
62
|
+
- Improve install message when installing for a subproject ([#847](https://github.com/j178/prek/pull/847))
|
|
63
|
+
|
|
64
|
+
### Bug fixes
|
|
65
|
+
|
|
66
|
+
- Convert extension to lowercase before checking file tags ([#839](https://github.com/j178/prek/pull/839))
|
|
67
|
+
- Support pass multiple files like `prek run --files a b c d` ([#828](https://github.com/j178/prek/pull/828))
|
|
68
|
+
|
|
69
|
+
### Documentation
|
|
70
|
+
|
|
71
|
+
- Add requests-cache to "Who is using prek" ([#824](https://github.com/j178/prek/pull/824))
|
|
72
|
+
|
|
73
|
+
### Contributors
|
|
74
|
+
|
|
75
|
+
- @SigureMo
|
|
76
|
+
- @j178
|
|
77
|
+
|
|
78
|
+
## 0.2.3
|
|
79
|
+
|
|
80
|
+
Released on 2025-09-29.
|
|
81
|
+
|
|
82
|
+
### Enhancements
|
|
83
|
+
|
|
84
|
+
- Add `--dry-run` to `prek auto-update` ([#806](https://github.com/j178/prek/pull/806))
|
|
85
|
+
- Add a global `--log-file` flag to specify the log file path ([#817](https://github.com/j178/prek/pull/817))
|
|
86
|
+
- Implement hook health check ([#798](https://github.com/j178/prek/pull/798))
|
|
87
|
+
- Show error message in quiet mode ([#807](https://github.com/j178/prek/pull/807))
|
|
88
|
+
|
|
89
|
+
### Bug fixes
|
|
90
|
+
|
|
91
|
+
- Write `fail` entry into output directly ([#811](https://github.com/j178/prek/pull/811))
|
|
92
|
+
|
|
93
|
+
### Documentation
|
|
94
|
+
|
|
95
|
+
- Update docs about uv in prek ([#810](https://github.com/j178/prek/pull/810))
|
|
96
|
+
|
|
97
|
+
### Other changes
|
|
98
|
+
|
|
99
|
+
- Add a security policy for reporting vulnerabilities ([#804](https://github.com/j178/prek/pull/804))
|
|
100
|
+
|
|
101
|
+
### Contributors
|
|
102
|
+
|
|
103
|
+
- @mondeja
|
|
104
|
+
- @j178
|
|
105
|
+
|
|
106
|
+
## 0.2.2
|
|
107
|
+
|
|
108
|
+
Released on 2025-09-26.
|
|
109
|
+
|
|
110
|
+
### Enhancements
|
|
111
|
+
|
|
112
|
+
- Add `prek cache dir`, move `prek gc` and `prek clean` under `prek cache` ([#795](https://github.com/j178/prek/pull/795))
|
|
113
|
+
- Add a hint when hooks failed in CI ([#800](https://github.com/j178/prek/pull/800))
|
|
114
|
+
- Add support for specifying `PREK_UV_SOURCE` ([#766](https://github.com/j178/prek/pull/766))
|
|
115
|
+
- Run docker container with `--init` ([#791](https://github.com/j178/prek/pull/791))
|
|
116
|
+
- Support `--allow-multiple-documents` for `check-yaml` ([#790](https://github.com/j178/prek/pull/790))
|
|
117
|
+
|
|
118
|
+
### Bug fixes
|
|
119
|
+
|
|
120
|
+
- Fix interpreter identification ([#801](https://github.com/j178/prek/pull/801))
|
|
121
|
+
|
|
122
|
+
### Documentation
|
|
123
|
+
|
|
124
|
+
- Add PaperQA2 to "Who is using prek" ([#793](https://github.com/j178/prek/pull/793))
|
|
125
|
+
- Clarify built-in hooks activation conditions and behavior ([#781](https://github.com/j178/prek/pull/781))
|
|
126
|
+
- Deduplicate docs between README and MkDocs site ([#792](https://github.com/j178/prek/pull/792))
|
|
127
|
+
- Mention `j178/prek-action` in docs ([#753](https://github.com/j178/prek/pull/753))
|
|
128
|
+
|
|
129
|
+
### Other Changes
|
|
130
|
+
|
|
131
|
+
- Bump `pre-commit-hooks` in sample-config to v6.0.0 ([#761](https://github.com/j178/prek/pull/761))
|
|
132
|
+
- Improve arg parsing for builtin hooks ([#789](https://github.com/j178/prek/pull/789))
|
|
133
|
+
|
|
134
|
+
### Contributors
|
|
135
|
+
|
|
136
|
+
- @mondeja
|
|
137
|
+
- @akx
|
|
138
|
+
- @bxb100
|
|
139
|
+
- @j178
|
|
140
|
+
- @onerandomusername
|
|
141
|
+
|
|
142
|
+
## 0.2.1
|
|
143
|
+
|
|
144
|
+
### Enhancements
|
|
145
|
+
|
|
146
|
+
- auto-update: prefer tags that are most similar to the current version ([#719](https://github.com/j178/prek/pull/719))
|
|
147
|
+
|
|
148
|
+
### Bug fixes
|
|
149
|
+
|
|
150
|
+
- Fix `git --no-pager diff` command syntax upon failures ([#746](https://github.com/j178/prek/pull/746))
|
|
151
|
+
- Clean working tree of current workspace only ([#747](https://github.com/j178/prek/pull/747))
|
|
152
|
+
- Use concurrent read and write in `git check-attr` ([#731](https://github.com/j178/prek/pull/731))
|
|
153
|
+
|
|
154
|
+
### Documentation
|
|
155
|
+
|
|
156
|
+
- Fix typo in language-version to language_version ([#727](https://github.com/j178/prek/pull/727))
|
|
157
|
+
- Update benchmarks ([#728](https://github.com/j178/prek/pull/728))
|
|
158
|
+
|
|
159
|
+
### Contributors
|
|
160
|
+
|
|
161
|
+
- @j178
|
|
162
|
+
- @matthiask
|
|
163
|
+
- @AdrianDC
|
|
164
|
+
- @onerandomusername
|
|
165
|
+
|
|
166
|
+
## 0.2.0
|
|
167
|
+
|
|
168
|
+
This is a huge milestone release that introduces **Workspace Mode** — first‑class monorepo support.
|
|
169
|
+
|
|
170
|
+
`prek` now allows you to manage multiple projects with their own `.pre-commit-config.yaml` within a single repository.
|
|
171
|
+
It auto‑discovers nested projects, runs hooks in project scope, and provides flexible selectors to target specific projects and hooks.
|
|
172
|
+
This makes `prek` a powerful tool for managing pre-commit hooks in complex repository structures.
|
|
173
|
+
|
|
174
|
+
For more details, see [Workspace Mode](https://prek.j178.dev/workspace/). If you encounter any issues, please report them at [Issues](https://github.com/j178/prek/issues).
|
|
175
|
+
|
|
176
|
+
**Note**: If you ran `prek install` in a repo before, you gonna need to run `prek install` again to replace the old git hook scripts for the workspace mode to work.
|
|
177
|
+
|
|
178
|
+
Special thanks to @potiuk for all the help and feedback in designing and testing this feature!
|
|
179
|
+
|
|
180
|
+
For detailed changes between 0.1.6 and 0.2.0, see [0.2.0-alpha.2](https://github.com/j178/prek/releases/v0.2.0-alpha.2), [0.2.0-alpha.3](https://github.com/j178/prek/releases/v0.2.0-alpha.3), [0.2.0-alpha.4](https://github.com/j178/prek/releases/v0.2.0-alpha.4), and [0.2.0-alpha.5](https://github.com/j178/prek/releases/v0.2.0-alpha.5).
|
|
181
|
+
|
|
182
|
+
### Enhancements
|
|
183
|
+
|
|
184
|
+
- Fix parsing of tag describe for prerelease versions ([#714](https://github.com/j178/prek/pull/714))
|
|
185
|
+
- Truncate log file each time ([#717](https://github.com/j178/prek/pull/717))
|
|
186
|
+
|
|
187
|
+
### Performance
|
|
188
|
+
|
|
189
|
+
- Enable more aggressive optimizations for release ([#724](https://github.com/j178/prek/pull/724))
|
|
190
|
+
- Speed up check_toml ([#713](https://github.com/j178/prek/pull/713))
|
|
191
|
+
|
|
192
|
+
### Bug fixes
|
|
193
|
+
|
|
194
|
+
- Fix hook-impl don't run hooks when specified allow missing config ([#716](https://github.com/j178/prek/pull/716))
|
|
195
|
+
- fix: support py38 for pygrep ([#723](https://github.com/j178/prek/pull/723))
|
|
196
|
+
|
|
197
|
+
### Other changes
|
|
198
|
+
|
|
199
|
+
- Fix installation on fish and with missing tags ([#721](https://github.com/j178/prek/pull/721))
|
|
200
|
+
|
|
201
|
+
### Contributors
|
|
202
|
+
|
|
203
|
+
- @onerandomusername
|
|
204
|
+
- @kushudai
|
|
205
|
+
- @j178
|
|
206
|
+
|
|
207
|
+
## 0.2.0a5
|
|
208
|
+
|
|
209
|
+
### Enhancements
|
|
210
|
+
|
|
211
|
+
- Add built in byte-order-marker fixer ([#700](https://github.com/j178/prek/pull/700))
|
|
212
|
+
- Use bigger buffer for fixing trailing whitespace ([#705](https://github.com/j178/prek/pull/705))
|
|
213
|
+
|
|
214
|
+
### Bug fixes
|
|
215
|
+
|
|
216
|
+
- Fix `trailing-whitespace` & `mixed-line-ending` write file path ([#708](https://github.com/j178/prek/pull/708))
|
|
217
|
+
- Fix file path handling for meta hooks in workspace mode ([#699](https://github.com/j178/prek/pull/699))
|
|
218
|
+
|
|
219
|
+
### Documentation
|
|
220
|
+
|
|
221
|
+
- Add docs about configuration ([#703](https://github.com/j178/prek/pull/703))
|
|
222
|
+
- Add docs about debugging ([#702](https://github.com/j178/prek/pull/702))
|
|
223
|
+
- Generate cli reference ([#707](https://github.com/j178/prek/pull/707))
|
|
224
|
+
|
|
225
|
+
### Contributors
|
|
226
|
+
|
|
227
|
+
- @kushudai
|
|
228
|
+
- @j178
|
|
229
|
+
|
|
230
|
+
## 0.2.0a4
|
|
231
|
+
|
|
232
|
+
### Enhancements
|
|
233
|
+
|
|
234
|
+
- Bring back `.pre-commit-config.yml` support ([#676](https://github.com/j178/prek/pull/676))
|
|
235
|
+
- Ignore config file from hidden directory ([#677](https://github.com/j178/prek/pull/677))
|
|
236
|
+
- Support selectors in `prek install/install-hooks/hook-impl` ([#683](https://github.com/j178/prek/pull/683))
|
|
237
|
+
|
|
238
|
+
### Bug fixes
|
|
239
|
+
|
|
240
|
+
- Do not set GOROOT for system install Go when running go hooks ([#694](https://github.com/j178/prek/pull/694))
|
|
241
|
+
- Fix `check_toml` and `check_yaml` in workspace mode ([#688](https://github.com/j178/prek/pull/688))
|
|
242
|
+
|
|
243
|
+
### Documentation
|
|
244
|
+
|
|
245
|
+
- Add docs about TODOs ([#679](https://github.com/j178/prek/pull/679))
|
|
246
|
+
- Add docs about builtin hooks ([#678](https://github.com/j178/prek/pull/678))
|
|
247
|
+
|
|
248
|
+
### Other changes
|
|
249
|
+
|
|
250
|
+
- docs(manifest): Correctly specify metadata for all packages ([#687](https://github.com/j178/prek/pull/687))
|
|
251
|
+
- refactor(cli): Clean up usage of clap ([#689](https://github.com/j178/prek/pull/689))
|
|
252
|
+
|
|
253
|
+
### Contributors
|
|
254
|
+
|
|
255
|
+
- @j178
|
|
256
|
+
- @epage
|
|
257
|
+
- @aravindan888
|
|
258
|
+
|
|
259
|
+
## 0.2.0a3
|
|
260
|
+
|
|
261
|
+
### Enhancements
|
|
262
|
+
|
|
263
|
+
- Add a warning to `hook-impl` when the script needs reinstall ([#647](https://github.com/j178/prek/pull/647))
|
|
264
|
+
|
|
265
|
+
### Documentation
|
|
266
|
+
|
|
267
|
+
- Add a notice to rerun `prek install` when upgrading to 0.2.0 ([#646](https://github.com/j178/prek/pull/646))
|
|
268
|
+
|
|
269
|
+
### Contributors
|
|
270
|
+
|
|
271
|
+
- @j178
|
|
272
|
+
|
|
273
|
+
## 0.2.0-alpha.2
|
|
274
|
+
|
|
275
|
+
*This is a re-release of [0.2.0-alpha.1](https://github.com/j178/prek/releases/tag/v0.2.0-alpha.1), fixed an issue that prereleases are not published to PyPI.*
|
|
276
|
+
|
|
277
|
+
This is a huge milestone release that introduces **Workspace Mode** — first‑class monorepo support.
|
|
278
|
+
|
|
279
|
+
`prek` now allows you to manage multiple projects with their own `.pre-commit-config.yaml` within a single repository. It auto‑discovers nested projects, runs hooks in project scope, and provides flexible selectors to target specific projects and hooks. This makes `prek` a powerful tool for managing pre-commit hooks in complex repository structures.
|
|
280
|
+
|
|
281
|
+
**Note**: If you ran `prek install` in a repo before, you gonna need to run `prek install` again to replace the old git hook scripts for the workspace mode to work.
|
|
282
|
+
|
|
283
|
+
For more details, see [Workspace Mode](https://prek.j178.dev/workspace/). If you encounter any issues, please report them at [Issues](https://github.com/j178/prek/issues).
|
|
284
|
+
|
|
285
|
+
Special thanks to @potiuk for all the help and feedback in designing and testing this feature!
|
|
286
|
+
|
|
287
|
+
### Enhancements
|
|
288
|
+
|
|
289
|
+
- Support multiple `.pre-commit-config.yaml` in a workspace (monorepo mode) ([#583](https://github.com/j178/prek/pull/583))
|
|
290
|
+
- Implement project and hook selector ([#623](https://github.com/j178/prek/pull/623))
|
|
291
|
+
- Add `prek run --cd <dir>` to change directory before running ([#581](https://github.com/j178/prek/pull/581))
|
|
292
|
+
- Support `prek list` in workspace mode ([#586](https://github.com/j178/prek/pull/586))
|
|
293
|
+
- Support `prek install|install-hooks|hook-impl|init-template-dir` in workspace mode ([#595](https://github.com/j178/prek/pull/595))
|
|
294
|
+
- Implement `auto-update` in workspace mode ([#605](https://github.com/j178/prek/pull/605))
|
|
295
|
+
- Implement selector completion in workspace mode ([#639](https://github.com/j178/prek/pull/639))
|
|
296
|
+
- Simplify `auto-update` implementation ([#608](https://github.com/j178/prek/pull/608))
|
|
297
|
+
- Add a `--dry-run` flag to `prek run` ([#622](https://github.com/j178/prek/pull/622))
|
|
298
|
+
- Cache workspace discovery result ([#636](https://github.com/j178/prek/pull/636))
|
|
299
|
+
- Fix local script hook entry path in workspace mode ([#603](https://github.com/j178/prek/pull/603))
|
|
300
|
+
- Fix `hook-impl` allow missing config ([#600](https://github.com/j178/prek/pull/600))
|
|
301
|
+
- Fix docker mount in workspace mode ([#638](https://github.com/j178/prek/pull/638))
|
|
302
|
+
- Show project line when project is not root ([#637](https://github.com/j178/prek/pull/637))
|
|
303
|
+
|
|
304
|
+
### Documentation
|
|
305
|
+
|
|
306
|
+
- Publish docs to `https://prek.j178.dev` ([#627](https://github.com/j178/prek/pull/627))
|
|
307
|
+
- Improve workspace docs about skips rule ([#615](https://github.com/j178/prek/pull/615))
|
|
308
|
+
- Add an full example and update docs ([#582](https://github.com/j178/prek/pull/582))
|
|
309
|
+
|
|
310
|
+
### Other changes
|
|
311
|
+
|
|
312
|
+
- Docs: `.pre-commit-config.yml` support has been removed ([#630](https://github.com/j178/prek/pull/630))
|
|
313
|
+
- Enable publishing prereleases ([#641](https://github.com/j178/prek/pull/641))
|
|
314
|
+
|
|
315
|
+
### Contributors
|
|
316
|
+
|
|
317
|
+
- [@luizvbo](https://github.com/luizvbo)
|
|
318
|
+
- [@j178](https://github.com/j178)
|
|
319
|
+
- [@hugovk](https://github.com/hugovk)
|
|
320
|
+
|
|
321
|
+
## 0.1.6
|
|
322
|
+
|
|
323
|
+
### Enhancements
|
|
324
|
+
|
|
325
|
+
- Improve hook install concurrency ([#611](https://github.com/j178/prek/pull/611))
|
|
326
|
+
- Parse JSON from slice ([#604](https://github.com/j178/prek/pull/604))
|
|
327
|
+
|
|
328
|
+
### Bug fixes
|
|
329
|
+
|
|
330
|
+
- Reuse hook env only for exactly same dependencies ([#609](https://github.com/j178/prek/pull/609))
|
|
331
|
+
- Workaround checkout file failure on Windows ([#616](https://github.com/j178/prek/pull/616))
|
|
332
|
+
|
|
333
|
+
## 0.1.5
|
|
334
|
+
|
|
335
|
+
### Enhancements
|
|
336
|
+
|
|
337
|
+
- Implement `pre-push` hook type ([#598](https://github.com/j178/prek/pull/598))
|
|
338
|
+
- Implement `pre-commit-hooks:check_yaml` as builtin hook ([#557](https://github.com/j178/prek/pull/557))
|
|
339
|
+
- Implement `pre-commit-hooks:check-toml` as builtin hook ([#564](https://github.com/j178/prek/pull/564))
|
|
340
|
+
- Add validation for file type tags ([#565](https://github.com/j178/prek/pull/565))
|
|
341
|
+
- Ignore NotFound error in extracting metadata log ([#597](https://github.com/j178/prek/pull/597))
|
|
342
|
+
|
|
343
|
+
### Documentation
|
|
344
|
+
|
|
345
|
+
- Update project status ([#578](https://github.com/j178/prek/pull/578))
|
|
346
|
+
|
|
347
|
+
### Other changes
|
|
348
|
+
|
|
349
|
+
- Bump tracing-subscriber to 0.3.20 ([#567](https://github.com/j178/prek/pull/567))
|
|
350
|
+
- Remove color from trace log ([#580](https://github.com/j178/prek/pull/580))
|
|
351
|
+
|
|
352
|
+
## 0.1.4
|
|
353
|
+
|
|
354
|
+
### Enhancements
|
|
355
|
+
|
|
356
|
+
- Improve docker image labels ([#551](https://github.com/j178/prek/pull/551))
|
|
357
|
+
|
|
358
|
+
### Performance
|
|
359
|
+
|
|
360
|
+
- Avoid unnecessary allocation in `run_by_batch` ([#549](https://github.com/j178/prek/pull/549))
|
|
361
|
+
- Cache current docker container mounts ([#552](https://github.com/j178/prek/pull/552))
|
|
362
|
+
|
|
363
|
+
### Bug fixes
|
|
364
|
+
|
|
365
|
+
- Fix `trailing-whitespace` cannot handle file contains invalid utf-8 data ([#544](https://github.com/j178/prek/pull/544))
|
|
366
|
+
- Fix trailing-whitespace eol trimming ([#546](https://github.com/j178/prek/pull/546))
|
|
367
|
+
- Fix trailing-whitespace markdown eol trimming ([#547](https://github.com/j178/prek/pull/547))
|
|
368
|
+
|
|
369
|
+
### Documentation
|
|
370
|
+
|
|
371
|
+
- Add authlib to `Who are using prek` ([#550](https://github.com/j178/prek/pull/550))
|
|
372
|
+
|
|
373
|
+
## 0.1.3
|
|
374
|
+
|
|
375
|
+
### Enhancements
|
|
376
|
+
|
|
377
|
+
- Support PEP 723 scripts for Python hooks ([#529](https://github.com/j178/prek/pull/529))
|
|
378
|
+
|
|
379
|
+
### Bug fixes
|
|
380
|
+
|
|
381
|
+
- Fix Python hook stderr are not captured ([#530](https://github.com/j178/prek/pull/530))
|
|
382
|
+
|
|
383
|
+
### Other changes
|
|
384
|
+
|
|
385
|
+
- Add an error context when reading manifest failed ([#527](https://github.com/j178/prek/pull/527))
|
|
386
|
+
- Add a renovate rule to bump bundled uv version ([#528](https://github.com/j178/prek/pull/528))
|
|
387
|
+
- Disable semantic commits for renovate PRs ([#538](https://github.com/j178/prek/pull/538))
|
|
388
|
+
|
|
389
|
+
## 0.1.2
|
|
390
|
+
|
|
391
|
+
### Enhancements
|
|
392
|
+
|
|
393
|
+
- Add check for missing hooks in new revision ([#521](https://github.com/j178/prek/pull/521))
|
|
394
|
+
|
|
395
|
+
### Bug fixes
|
|
396
|
+
|
|
397
|
+
- Fix `language: script` entry join issue ([#525](https://github.com/j178/prek/pull/525))
|
|
398
|
+
|
|
399
|
+
### Other changes
|
|
400
|
+
|
|
401
|
+
- Add OpenLineage to prek users ([#523](https://github.com/j178/prek/pull/523))
|
|
402
|
+
|
|
403
|
+
## 0.1.1
|
|
404
|
+
|
|
405
|
+
### Breaking changes
|
|
406
|
+
|
|
407
|
+
- Drop support `.yml` config file ([#493](https://github.com/j178/prek/pull/493))
|
|
408
|
+
|
|
409
|
+
### Enhancements
|
|
410
|
+
|
|
411
|
+
- Add moving rev warning ([#488](https://github.com/j178/prek/pull/488))
|
|
412
|
+
- Implement `prek auto-update` ([#511](https://github.com/j178/prek/pull/511))
|
|
413
|
+
- Support local path as a `repo` url ([#513](https://github.com/j178/prek/pull/513))
|
|
414
|
+
|
|
415
|
+
### Bug fixes
|
|
416
|
+
|
|
417
|
+
- Fix recursion limit when checking deeply nested json ([#507](https://github.com/j178/prek/pull/507))
|
|
418
|
+
- Fix rename tempfile across device ([#508](https://github.com/j178/prek/pull/508))
|
|
419
|
+
- Fix build on s390x ([#518](https://github.com/j178/prek/pull/518))
|
|
420
|
+
|
|
421
|
+
### Other changes
|
|
422
|
+
|
|
423
|
+
- docs: install prek with mise ([#510](https://github.com/j178/prek/pull/510))
|
|
424
|
+
|
|
425
|
+
## 0.0.29
|
|
426
|
+
|
|
427
|
+
### Enhancements
|
|
428
|
+
|
|
429
|
+
- Build wheels for more platforms ([#489](https://github.com/j178/prek/pull/489))
|
|
430
|
+
|
|
431
|
+
### Bug fixes
|
|
432
|
+
|
|
433
|
+
- Fix `git commit -a` does not pick up staged files correctly ([#487](https://github.com/j178/prek/pull/487))
|
|
434
|
+
|
|
435
|
+
## 0.0.28
|
|
436
|
+
|
|
437
|
+
### Bug fixes
|
|
438
|
+
|
|
439
|
+
- Fix `inde.lock file exists` error when running `git commit -p` or `git commit -a` ([#482](https://github.com/j178/prek/pull/482))
|
|
440
|
+
- Various fixes to `init-templdate-dir` and directory related bug ([#484](https://github.com/j178/prek/pull/484))
|
|
441
|
+
|
|
442
|
+
## 0.0.27
|
|
443
|
+
|
|
444
|
+
### Enhancements
|
|
445
|
+
|
|
446
|
+
- Clone repo temporarily into scratch directory ([#478](https://github.com/j178/prek/pull/478))
|
|
447
|
+
- Don’t show the progress bar if there’s no need for cloning or installing hooks ([#477](https://github.com/j178/prek/pull/477))
|
|
448
|
+
- Support `language_version: lts` for node ([#473](https://github.com/j178/prek/pull/473))
|
|
449
|
+
|
|
450
|
+
### Bug fixes
|
|
451
|
+
|
|
452
|
+
- Adjust `sample-config` file path before writing ([#474](https://github.com/j178/prek/pull/474))
|
|
453
|
+
- Resolve script shebang before running ([#475](https://github.com/j178/prek/pull/475))
|
|
454
|
+
|
|
455
|
+
## 0.0.26
|
|
456
|
+
|
|
457
|
+
### Enhancements
|
|
458
|
+
|
|
459
|
+
- Disable `prek self update` for package managers ([#468](https://github.com/j178/prek/pull/468))
|
|
460
|
+
- Download uv from github releases directly ([#464](https://github.com/j178/prek/pull/464))
|
|
461
|
+
- Find `uv` alongside the `prek` binary ([#466](https://github.com/j178/prek/pull/466))
|
|
462
|
+
- Run hooks with pty if color enabled ([#471](https://github.com/j178/prek/pull/471))
|
|
463
|
+
- Warn unexpected keys in config ([#463](https://github.com/j178/prek/pull/463))
|
|
464
|
+
|
|
465
|
+
### Bug fixes
|
|
466
|
+
|
|
467
|
+
- Canonicalize prek executable path ([#467](https://github.com/j178/prek/pull/467))
|
|
468
|
+
|
|
469
|
+
### Documentation
|
|
470
|
+
|
|
471
|
+
- Add "Who are using prek" to README ([#458](https://github.com/j178/prek/pull/458))
|
|
472
|
+
|
|
473
|
+
## 0.0.25
|
|
474
|
+
|
|
475
|
+
### Enhancements
|
|
476
|
+
|
|
477
|
+
- Add check for `minimum_prek_version` ([#437](https://github.com/j178/prefligit/pull/437))
|
|
478
|
+
- Make `--to-ref` default to HEAD if `--from-ref` is specified ([#426](https://github.com/j178/prefligit/pull/426))
|
|
479
|
+
- Support downloading uv from pypi and mirrors ([#449](https://github.com/j178/prefligit/pull/449))
|
|
480
|
+
- Write trace log to `$PREK_HOME/prek.log` ([#447](https://github.com/j178/prefligit/pull/447))
|
|
481
|
+
- Implement `mixed_line_ending` as builtin hook ([#444](https://github.com/j178/prefligit/pull/444))
|
|
482
|
+
- Support `--output-format=json` in `prek list` ([#446](https://github.com/j178/prefligit/pull/446))
|
|
483
|
+
- Add context message to install error ([#455](https://github.com/j178/prefligit/pull/455))
|
|
484
|
+
- Add warning for non-existent hook id ([#450](https://github.com/j178/prefligit/pull/450))
|
|
485
|
+
|
|
486
|
+
### Performance
|
|
487
|
+
|
|
488
|
+
- Refactor `fix_trailing_whitespace` ([#411](https://github.com/j178/prefligit/pull/411))
|
|
489
|
+
|
|
490
|
+
### Bug fixes
|
|
491
|
+
|
|
492
|
+
- Calculate more accurate max cli length ([#442](https://github.com/j178/prefligit/pull/442))
|
|
493
|
+
- Fix uv install on Windows ([#453](https://github.com/j178/prefligit/pull/453))
|
|
494
|
+
- Static link `liblzma` ([#445](https://github.com/j178/prefligit/pull/445))
|
|
495
|
+
|
|
496
|
+
## 0.0.24
|
|
497
|
+
|
|
498
|
+
### Enhancements
|
|
499
|
+
|
|
500
|
+
- Add dynamic completion of hook ids ([#380](https://github.com/j178/prek/pull/380))
|
|
501
|
+
- Implement `prek list` to list available hooks ([#424](https://github.com/j178/prek/pull/424))
|
|
502
|
+
- Implement `pygrep` language support ([#383](https://github.com/j178/prek/pull/383))
|
|
503
|
+
- Support `prek run` multiple hooks ([#423](https://github.com/j178/prek/pull/423))
|
|
504
|
+
- Implement `check_json` as builtin hook ([#416](https://github.com/j178/prek/pull/416))
|
|
505
|
+
|
|
506
|
+
### Performance
|
|
507
|
+
|
|
508
|
+
- Avoid reading whole file into memory in `fix_end_of_file` and make it consistent with `pre-commit-hooks` ([#399](https://github.com/j178/prek/pull/399))
|
|
509
|
+
|
|
510
|
+
### Bug fixes
|
|
511
|
+
|
|
512
|
+
- Do not set `GOROOT` and `GOPATH` for system found go ([#415](https://github.com/j178/prek/pull/415))
|
|
513
|
+
|
|
514
|
+
### Documentation
|
|
515
|
+
|
|
516
|
+
- Use `brew install j178/tap/prek` for now ([#420](https://github.com/j178/prek/pull/420))
|
|
517
|
+
- chore: logo rebranded, Update README.md ([#408](https://github.com/j178/prek/pull/408))
|
|
518
|
+
|
|
519
|
+
## 0.0.23
|
|
520
|
+
|
|
521
|
+
### Breaking changes
|
|
522
|
+
|
|
523
|
+
In this release, we've renamed the project to `prek` from `prefligit`. It's shorter so easier to type, and it avoids typosquatting with `preflight`.
|
|
524
|
+
|
|
525
|
+
This means that the command-line name is now `prek`, and the PyPI package is now listed as [`prek`](https://pypi.org/project/prek/).
|
|
526
|
+
And the Homebrew will be updated to `prek` as well.
|
|
527
|
+
|
|
528
|
+
And previously, the cache directory was `~/.cache/prefligit`, now it is `~/.cache/prek`.
|
|
529
|
+
You'd have to delete the old cache directory manually, or run `prefligit clean` to clean it up.
|
|
530
|
+
|
|
531
|
+
Then uninstall the old `prefligit` and install the new `prek` from scratch.
|
|
532
|
+
|
|
533
|
+
### Enhancements
|
|
534
|
+
|
|
535
|
+
- Relax uv version check range ([#396](https://github.com/j178/prefligit/pull/396))
|
|
536
|
+
|
|
537
|
+
### Bug fixes
|
|
538
|
+
|
|
539
|
+
- Fix `script` command path ([#398](https://github.com/j178/prefligit/pull/398))
|
|
540
|
+
- Fix meta hook `check_useless_excludes` ([#401](https://github.com/j178/prefligit/pull/401))
|
|
541
|
+
|
|
542
|
+
### Other changes
|
|
543
|
+
|
|
544
|
+
- Rename to `prek` from `prefligit` ([#402](https://github.com/j178/prefligit/pull/402))
|
|
545
|
+
|
|
546
|
+
## 0.0.22
|
|
547
|
+
|
|
548
|
+
### Enhancements
|
|
549
|
+
|
|
550
|
+
- Add value hint to `prefligit run` flags ([#373](https://github.com/j178/prefligit/pull/373))
|
|
551
|
+
- Check minimum supported version for uv found from system ([#352](https://github.com/j178/prefligit/pull/352))
|
|
552
|
+
|
|
553
|
+
### Bug fixes
|
|
554
|
+
|
|
555
|
+
- Fix `check_added_large_files` parameter name ([#389](https://github.com/j178/prefligit/pull/389))
|
|
556
|
+
- Fix `npm install` on Windows ([#374](https://github.com/j178/prefligit/pull/374))
|
|
557
|
+
- Fix docker mount options ([#377](https://github.com/j178/prefligit/pull/377))
|
|
558
|
+
- Fix identify tags for `Pipfile.lock` ([#391](https://github.com/j178/prefligit/pull/391))
|
|
559
|
+
- Fix identifying symlinks ([#378](https://github.com/j178/prefligit/pull/378))
|
|
560
|
+
- Set `GOROOT` when installing golang hook ([#381](https://github.com/j178/prefligit/pull/381))
|
|
561
|
+
|
|
562
|
+
### Other changes
|
|
563
|
+
- Add devcontainer config ([#379](https://github.com/j178/prefligit/pull/379))
|
|
564
|
+
- Bump rust toolchain to 1.89 ([#386](https://github.com/j178/prefligit/pull/386))
|
|
565
|
+
|
|
566
|
+
## 0.0.21
|
|
567
|
+
|
|
568
|
+
### Enhancements
|
|
569
|
+
|
|
570
|
+
- Add `--directory` to `prefligit run` ([#358](https://github.com/j178/prefligit/pull/358))
|
|
571
|
+
- Implement `tags_from_interpreter` ([#362](https://github.com/j178/prefligit/pull/362))
|
|
572
|
+
- Set GOBIN to `<hook-env>/bin`, set GOPATH to `$PREGLIGIT_HOME/cache/go` ([#369](https://github.com/j178/prefligit/pull/369))
|
|
573
|
+
|
|
574
|
+
### Performance
|
|
575
|
+
|
|
576
|
+
- Make Partitions iterator produce slice instead of Vec ([#361](https://github.com/j178/prefligit/pull/361))
|
|
577
|
+
- Use `rustc_hash` ([#359](https://github.com/j178/prefligit/pull/359))
|
|
578
|
+
|
|
579
|
+
### Bug fixes
|
|
580
|
+
|
|
581
|
+
- Add `node` to PATH when running `npm` ([#371](https://github.com/j178/prefligit/pull/371))
|
|
582
|
+
- Fix bug that default hook stage should be pre-commit ([#367](https://github.com/j178/prefligit/pull/367))
|
|
583
|
+
- Fix cache dir permission before clean ([#368](https://github.com/j178/prefligit/pull/368))
|
|
584
|
+
|
|
585
|
+
### Other changes
|
|
586
|
+
|
|
587
|
+
- Move `Project` into `workspace` module ([#364](https://github.com/j178/prefligit/pull/364))
|
|
588
|
+
|
|
589
|
+
## 0.0.20
|
|
590
|
+
|
|
591
|
+
### Enhancements
|
|
592
|
+
|
|
593
|
+
- Support golang hooks and golang toolchain management ([#355](https://github.com/j178/prefligit/pull/355))
|
|
594
|
+
- Add `--last-commit` flag to `prefligit run` ([#351](https://github.com/j178/prefligit/pull/351))
|
|
595
|
+
|
|
596
|
+
### Bug fixes
|
|
597
|
+
|
|
598
|
+
- Fix bug that directories are ignored ([#350](https://github.com/j178/prefligit/pull/350))
|
|
599
|
+
- Use `git ls-remote` to fetch go releases ([#356](https://github.com/j178/prefligit/pull/356))
|
|
600
|
+
|
|
601
|
+
### Documentation
|
|
602
|
+
|
|
603
|
+
- Add migration section to README ([#354](https://github.com/j178/prefligit/pull/354))
|
|
604
|
+
|
|
605
|
+
## 0.0.19
|
|
606
|
+
|
|
607
|
+
### Enhancements
|
|
608
|
+
|
|
609
|
+
- Improve node support ([#346](https://github.com/j178/prefligit/pull/346))
|
|
610
|
+
- Manage uv cache dir ([#345](https://github.com/j178/prefligit/pull/345))
|
|
611
|
+
|
|
612
|
+
### Bug fixes
|
|
613
|
+
|
|
614
|
+
- Add `--install-links` to `npm install` ([#347](https://github.com/j178/prefligit/pull/347))
|
|
615
|
+
- Fix large file check to use staged_get instead of intent_add ([#332](https://github.com/j178/prefligit/pull/332))
|
|
616
|
+
|
|
617
|
+
## 0.0.18
|
|
618
|
+
|
|
619
|
+
### Enhancements
|
|
620
|
+
|
|
621
|
+
- Impl `FromStr` for language request ([#338](https://github.com/j178/prefligit/pull/338))
|
|
622
|
+
|
|
623
|
+
### Performance
|
|
624
|
+
|
|
625
|
+
- Use DFS to find connected components in hook dependencies ([#341](https://github.com/j178/prefligit/pull/341))
|
|
626
|
+
- Use more `Arc<T>` over `Box<T>` ([#333](https://github.com/j178/prefligit/pull/333))
|
|
627
|
+
|
|
628
|
+
### Bug fixes
|
|
629
|
+
|
|
630
|
+
- Fix node path match, add tests ([#339](https://github.com/j178/prefligit/pull/339))
|
|
631
|
+
- Skipped hook name should be taken into account for columns ([#335](https://github.com/j178/prefligit/pull/335))
|
|
632
|
+
|
|
633
|
+
### Documentation
|
|
634
|
+
|
|
635
|
+
- Add benchmarks ([#342](https://github.com/j178/prefligit/pull/342))
|
|
636
|
+
- Update docs ([#337](https://github.com/j178/prefligit/pull/337))
|
|
637
|
+
|
|
638
|
+
## 0.0.17
|
|
639
|
+
|
|
640
|
+
### Enhancements
|
|
641
|
+
|
|
642
|
+
- Add `sample-config --file` to write sample config to file ([#313](https://github.com/j178/prefligit/pull/313))
|
|
643
|
+
- Cache computed `dependencies` on hook ([#319](https://github.com/j178/prefligit/pull/319))
|
|
644
|
+
- Cache the found path to uv ([#323](https://github.com/j178/prefligit/pull/323))
|
|
645
|
+
- Improve `sample-config` writing file ([#314](https://github.com/j178/prefligit/pull/314))
|
|
646
|
+
- Reimplement find matching env logic ([#327](https://github.com/j178/prefligit/pull/327))
|
|
647
|
+
|
|
648
|
+
### Bug fixes
|
|
649
|
+
|
|
650
|
+
- Fix issue that `entry` of `pygrep` is not shell commands ([#316](https://github.com/j178/prefligit/pull/316))
|
|
651
|
+
- Support `python311` as a valid language version ([#321](https://github.com/j178/prefligit/pull/321))
|
|
652
|
+
|
|
653
|
+
### Other changes
|
|
654
|
+
|
|
655
|
+
- Bump cargo-dist to 0.29.0 ([#322](https://github.com/j178/prefligit/pull/322))
|
|
656
|
+
- Update DIFF.md ([#318](https://github.com/j178/prefligit/pull/318))
|
|
657
|
+
|
|
658
|
+
## 0.0.16
|
|
659
|
+
|
|
660
|
+
### Enhancements
|
|
661
|
+
|
|
662
|
+
- Improve error message for hook ([#308](https://github.com/j178/prefligit/pull/308))
|
|
663
|
+
- Improve error message for hook installation and run ([#310](https://github.com/j178/prefligit/pull/310))
|
|
664
|
+
- Improve hook invalid error message ([#307](https://github.com/j178/prefligit/pull/307))
|
|
665
|
+
- Parse `entry` when constructing hook ([#306](https://github.com/j178/prefligit/pull/306))
|
|
666
|
+
- Rename `autoupdate` to `auto-update`, `init-templatedir` to `init-template-dir` ([#302](https://github.com/j178/prefligit/pull/302))
|
|
667
|
+
|
|
668
|
+
### Bug fixes
|
|
669
|
+
|
|
670
|
+
- Fix `end-of-file-fixer` replaces `\r\n` with `\n` ([#311](https://github.com/j178/prefligit/pull/311))
|
|
671
|
+
|
|
672
|
+
## 0.0.15
|
|
673
|
+
|
|
674
|
+
In this release, `language: node` hooks are fully supported now (finally)!.
|
|
675
|
+
Give it a try and let us know if you run into any issues!
|
|
676
|
+
|
|
677
|
+
### Enhancements
|
|
678
|
+
|
|
679
|
+
- Support `nodejs` language hook ([#298](https://github.com/j178/prefligit/pull/298))
|
|
680
|
+
- Show unimplemented message earlier ([#296](https://github.com/j178/prefligit/pull/296))
|
|
681
|
+
- Simplify npm installing dependencies ([#299](https://github.com/j178/prefligit/pull/299))
|
|
682
|
+
|
|
683
|
+
### Documentation
|
|
684
|
+
|
|
685
|
+
- Update readme ([#300](https://github.com/j178/prefligit/pull/300))
|
|
686
|
+
|
|
687
|
+
## 0.0.14
|
|
688
|
+
|
|
689
|
+
### Enhancements
|
|
690
|
+
|
|
691
|
+
- Show unimplemented status instead of panic ([#290](https://github.com/j178/prefligit/pull/290))
|
|
692
|
+
- Try default uv managed python first, fallback to download ([#291](https://github.com/j178/prefligit/pull/291))
|
|
693
|
+
|
|
694
|
+
### Other changes
|
|
695
|
+
|
|
696
|
+
- Update Rust crate fancy-regex to 0.16.0 ([#286](https://github.com/j178/prefligit/pull/286))
|
|
697
|
+
- Update Rust crate indicatif to 0.18.0 ([#287](https://github.com/j178/prefligit/pull/287))
|
|
698
|
+
- Update Rust crate pprof to 0.15.0 ([#288](https://github.com/j178/prefligit/pull/288))
|
|
699
|
+
- Update Rust crate serde_json to v1.0.142 ([#285](https://github.com/j178/prefligit/pull/285))
|
|
700
|
+
- Update astral-sh/setup-uv action to v6 ([#289](https://github.com/j178/prefligit/pull/289))
|
|
701
|
+
|
|
702
|
+
## 0.0.13
|
|
703
|
+
|
|
704
|
+
### Enhancements
|
|
705
|
+
|
|
706
|
+
- Add `PREFLIGIT_NO_FAST_PATH` to disable Rust fast path ([#272](https://github.com/j178/prefligit/pull/272))
|
|
707
|
+
- Improve subprocess error message ([#276](https://github.com/j178/prefligit/pull/276))
|
|
708
|
+
- Remove `LanguagePreference` and improve language check ([#277](https://github.com/j178/prefligit/pull/277))
|
|
709
|
+
- Support downloading requested Python version automatically ([#281](https://github.com/j178/prefligit/pull/281))
|
|
710
|
+
- Implement language specific version parsing ([#273](https://github.com/j178/prefligit/pull/273))
|
|
711
|
+
|
|
712
|
+
### Bug fixes
|
|
713
|
+
|
|
714
|
+
- Fix python version matching ([#275](https://github.com/j178/prefligit/pull/275))
|
|
715
|
+
- Show progress bar in verbose mode ([#278](https://github.com/j178/prefligit/pull/278))
|
|
716
|
+
|
|
717
|
+
## 0.0.12
|
|
718
|
+
|
|
719
|
+
### Bug fixes
|
|
720
|
+
|
|
721
|
+
- Ignore `config not staged` error for config outside the repo ([#270](https://github.com/j178/prefligit/pull/270))
|
|
722
|
+
|
|
723
|
+
### Other changes
|
|
724
|
+
|
|
725
|
+
- Add test fixture files ([#266](https://github.com/j178/prefligit/pull/266))
|
|
726
|
+
- Use `sync_all` over `flush` ([#269](https://github.com/j178/prefligit/pull/269))
|
|
727
|
+
|
|
728
|
+
## 0.0.11
|
|
729
|
+
|
|
730
|
+
### Enhancements
|
|
731
|
+
|
|
732
|
+
- Support reading `.pre-commit-config.yml` as well ([#213](https://github.com/j178/prefligit/pull/213))
|
|
733
|
+
- Refactor language version resolution and hook install dir ([#221](https://github.com/j178/prefligit/pull/221))
|
|
734
|
+
- Implement `prefligit install-hooks` command ([#258](https://github.com/j178/prefligit/pull/258))
|
|
735
|
+
- Implement `pre-commit-hooks:end-of-file-fixer` hook ([#255](https://github.com/j178/prefligit/pull/255))
|
|
736
|
+
- Implement `pre-commit-hooks:check_added_large_files` hook ([#219](https://github.com/j178/prefligit/pull/219))
|
|
737
|
+
- Implement `script` language hooks ([#252](https://github.com/j178/prefligit/pull/252))
|
|
738
|
+
- Implement node.js installer ([#152](https://github.com/j178/prefligit/pull/152))
|
|
739
|
+
- Use `-v` to show only verbose message, `-vv` show debug log, `-vvv` show trace log ([#211](https://github.com/j178/prefligit/pull/211))
|
|
740
|
+
- Write `.prefligit-repo.json` inside cloned repo ([#225](https://github.com/j178/prefligit/pull/225))
|
|
741
|
+
- Add language name to 'not yet implemented' messages ([#251](https://github.com/j178/prefligit/pull/251))
|
|
742
|
+
|
|
743
|
+
### Bug fixes
|
|
744
|
+
|
|
745
|
+
- Do not install if no additional dependencies for local python hook ([#195](https://github.com/j178/prefligit/pull/195))
|
|
746
|
+
- Ensure flushing log file ([#261](https://github.com/j178/prefligit/pull/261))
|
|
747
|
+
- Fix zip deflate ([#194](https://github.com/j178/prefligit/pull/194))
|
|
748
|
+
|
|
749
|
+
### Other changes
|
|
750
|
+
|
|
751
|
+
- Bump to Rust 1.88 and `cargo update` ([#254](https://github.com/j178/prefligit/pull/254))
|
|
752
|
+
- Upgrade to Rust 2024 edition ([#196](https://github.com/j178/prefligit/pull/196))
|
|
753
|
+
- Bump uv version ([#260](https://github.com/j178/prefligit/pull/260))
|
|
754
|
+
- Simplify archive extraction implementation ([#193](https://github.com/j178/prefligit/pull/193))
|
|
755
|
+
- Use `astral-sh/rs-async-zip` ([#259](https://github.com/j178/prefligit/pull/259))
|
|
756
|
+
- Use `ubuntu-latest` for release action ([#216](https://github.com/j178/prefligit/pull/216))
|
|
757
|
+
- Use async closure ([#200](https://github.com/j178/prefligit/pull/200))
|
|
758
|
+
|
|
759
|
+
## 0.0.10
|
|
760
|
+
|
|
761
|
+
### Breaking changes
|
|
762
|
+
|
|
763
|
+
**Warning**: This release changed the store layout, it's recommended to delete the old store and install from scratch.
|
|
764
|
+
|
|
765
|
+
To delete the old store, run:
|
|
766
|
+
|
|
767
|
+
```sh
|
|
768
|
+
rm -rf ~/.cache/prefligit
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Enhancements
|
|
772
|
+
|
|
773
|
+
- Restructure store folders layout ([#181](https://github.com/j178/prefligit/pull/181))
|
|
774
|
+
- Fallback some env vars to to pre-commit ([#175](https://github.com/j178/prefligit/pull/175))
|
|
775
|
+
- Save patches to `$PREFLIGIT_HOME/patches` ([#182](https://github.com/j178/prefligit/pull/182))
|
|
776
|
+
|
|
777
|
+
### Bug fixes
|
|
778
|
+
|
|
779
|
+
- Fix removing git env vars ([#176](https://github.com/j178/prefligit/pull/176))
|
|
780
|
+
- Fix typo in Cargo.toml ([#160](https://github.com/j178/prefligit/pull/160))
|
|
781
|
+
|
|
782
|
+
### Other changes
|
|
783
|
+
|
|
784
|
+
- Do not publish to crates.io ([#191](https://github.com/j178/prefligit/pull/191))
|
|
785
|
+
- Bump cargo-dist to v0.28.0 ([#170](https://github.com/j178/prefligit/pull/170))
|
|
786
|
+
- Bump uv version to 0.6.0 ([#184](https://github.com/j178/prefligit/pull/184))
|
|
787
|
+
- Configure Renovate ([#168](https://github.com/j178/prefligit/pull/168))
|
|
788
|
+
- Format sample config output ([#172](https://github.com/j178/prefligit/pull/172))
|
|
789
|
+
- Make env vars a shareable crate ([#171](https://github.com/j178/prefligit/pull/171))
|
|
790
|
+
- Reduce String alloc ([#166](https://github.com/j178/prefligit/pull/166))
|
|
791
|
+
- Skip common git flags in command trace log ([#162](https://github.com/j178/prefligit/pull/162))
|
|
792
|
+
- Update Rust crate clap to v4.5.29 ([#173](https://github.com/j178/prefligit/pull/173))
|
|
793
|
+
- Update Rust crate which to v7.0.2 ([#163](https://github.com/j178/prefligit/pull/163))
|
|
794
|
+
- Update astral-sh/setup-uv action to v5 ([#164](https://github.com/j178/prefligit/pull/164))
|
|
795
|
+
- Upgrade Rust to 1.84 and upgrade dependencies ([#161](https://github.com/j178/prefligit/pull/161))
|
|
796
|
+
|
|
797
|
+
## 0.0.9
|
|
798
|
+
|
|
799
|
+
Due to a mistake in the release process, this release is skipped.
|
|
800
|
+
|
|
801
|
+
## 0.0.8
|
|
802
|
+
|
|
803
|
+
### Enhancements
|
|
804
|
+
|
|
805
|
+
- Move home dir to `~/.cache/prefligit` ([#154](https://github.com/j178/prefligit/pull/154))
|
|
806
|
+
- Implement trailing-whitespace in Rust ([#137](https://github.com/j178/prefligit/pull/137))
|
|
807
|
+
- Limit hook install concurrency ([#145](https://github.com/j178/prefligit/pull/145))
|
|
808
|
+
- Simplify language default version implementation ([#150](https://github.com/j178/prefligit/pull/150))
|
|
809
|
+
- Support install uv from pypi ([#149](https://github.com/j178/prefligit/pull/149))
|
|
810
|
+
- Add executing command to error message ([#141](https://github.com/j178/prefligit/pull/141))
|
|
811
|
+
|
|
812
|
+
### Bug fixes
|
|
813
|
+
|
|
814
|
+
- Use hook `args` in fast path ([#139](https://github.com/j178/prefligit/pull/139))
|
|
815
|
+
|
|
816
|
+
### Other changes
|
|
817
|
+
|
|
818
|
+
- Remove hook install_key ([#153](https://github.com/j178/prefligit/pull/153))
|
|
819
|
+
- Remove pyvenv.cfg patch ([#156](https://github.com/j178/prefligit/pull/156))
|
|
820
|
+
- Try to use D drive on Windows CI ([#157](https://github.com/j178/prefligit/pull/157))
|
|
821
|
+
- Tweak trailing-whitespace-fixer ([#140](https://github.com/j178/prefligit/pull/140))
|
|
822
|
+
- Upgrade dist to v0.27.0 ([#158](https://github.com/j178/prefligit/pull/158))
|
|
823
|
+
- Uv install python into tools path ([#151](https://github.com/j178/prefligit/pull/151))
|
|
824
|
+
|
|
825
|
+
## 0.0.7
|
|
826
|
+
|
|
827
|
+
### Enhancements
|
|
828
|
+
|
|
829
|
+
- Add progress bar for hook init and install ([#122](https://github.com/j178/prefligit/pull/122))
|
|
830
|
+
- Add color to command help ([#131](https://github.com/j178/prefligit/pull/131))
|
|
831
|
+
- Add commit info to version display ([#130](https://github.com/j178/prefligit/pull/130))
|
|
832
|
+
- Support meta hooks reading ([#134](https://github.com/j178/prefligit/pull/134))
|
|
833
|
+
- Implement meta hooks ([#135](https://github.com/j178/prefligit/pull/135))
|
|
834
|
+
|
|
835
|
+
### Bug fixes
|
|
836
|
+
|
|
837
|
+
- Fix same repo clone multiple times ([#125](https://github.com/j178/prefligit/pull/125))
|
|
838
|
+
- Fix logging level after renaming ([#119](https://github.com/j178/prefligit/pull/119))
|
|
839
|
+
- Fix version tag distance ([#132](https://github.com/j178/prefligit/pull/132))
|
|
840
|
+
|
|
841
|
+
### Other changes
|
|
842
|
+
|
|
843
|
+
- Disable uv cache on Windows ([#127](https://github.com/j178/prefligit/pull/127))
|
|
844
|
+
- Impl Eq and Hash for ConfigRemoteRepo ([#126](https://github.com/j178/prefligit/pull/126))
|
|
845
|
+
- Make `pass_env_vars` runs on Windows ([#133](https://github.com/j178/prefligit/pull/133))
|
|
846
|
+
- Run cargo update ([#129](https://github.com/j178/prefligit/pull/129))
|
|
847
|
+
- Update Readme ([#128](https://github.com/j178/prefligit/pull/128))
|
|
848
|
+
|
|
849
|
+
## 0.0.6
|
|
850
|
+
|
|
851
|
+
### Breaking changes
|
|
852
|
+
|
|
853
|
+
In this release, we’ve renamed the project to `prefligit` (a deliberate misspelling of preflight) to prevent confusion with the existing pre-commit tool. For further information, refer to issue #73.
|
|
854
|
+
|
|
855
|
+
- The command-line name is now `prefligit`. We suggest uninstalling any previous version of `pre-commit-rs` and installing `prefligit` from scratch.
|
|
856
|
+
- The PyPI package is now listed as [`prefligit`](https://pypi.org/project/prefligit/).
|
|
857
|
+
- The Cargo package is also now [`prefligit`](https://crates.io/crates/prefligit).
|
|
858
|
+
- The Homebrew formula has been updated to `prefligit`.
|
|
859
|
+
|
|
860
|
+
### Enhancements
|
|
861
|
+
|
|
862
|
+
- Support `docker_image` language ([#113](https://github.com/j178/pre-commit-rs/pull/113))
|
|
863
|
+
- Support `init-templatedir` subcommand ([#101](https://github.com/j178/pre-commit-rs/pull/101))
|
|
864
|
+
- Implement get filenames from merge conflicts ([#103](https://github.com/j178/pre-commit-rs/pull/103))
|
|
865
|
+
|
|
866
|
+
### Bug fixes
|
|
867
|
+
|
|
868
|
+
- Fix `prefligit install --hook-type` name ([#102](https://github.com/j178/pre-commit-rs/pull/102))
|
|
869
|
+
|
|
870
|
+
### Other changes
|
|
871
|
+
|
|
872
|
+
- Apply color option to log ([#100](https://github.com/j178/pre-commit-rs/pull/100))
|
|
873
|
+
- Improve tests ([#106](https://github.com/j178/pre-commit-rs/pull/106))
|
|
874
|
+
- Remove intermedia Language enum ([#107](https://github.com/j178/pre-commit-rs/pull/107))
|
|
875
|
+
- Run `cargo clippy` in the dev drive workspace ([#115](https://github.com/j178/pre-commit-rs/pull/115))
|
|
876
|
+
|
|
877
|
+
## 0.0.5
|
|
878
|
+
|
|
879
|
+
### Enhancements
|
|
880
|
+
|
|
881
|
+
v0.0.4 release process was broken, so this release is a actually a re-release of v0.0.4.
|
|
882
|
+
|
|
883
|
+
- Improve subprocess trace and error output ([#92](https://github.com/j178/pre-commit-rs/pull/92))
|
|
884
|
+
- Stash working tree before running hooks ([#96](https://github.com/j178/pre-commit-rs/pull/96))
|
|
885
|
+
- Add color to command trace ([#94](https://github.com/j178/pre-commit-rs/pull/94))
|
|
886
|
+
- Improve hook output display ([#79](https://github.com/j178/pre-commit-rs/pull/79))
|
|
887
|
+
- Improve uv installation ([#78](https://github.com/j178/pre-commit-rs/pull/78))
|
|
888
|
+
- Support docker language ([#67](https://github.com/j178/pre-commit-rs/pull/67))
|
|
889
|
+
|
|
890
|
+
## 0.0.4
|
|
891
|
+
|
|
892
|
+
### Enhancements
|
|
893
|
+
|
|
894
|
+
- Improve subprocess trace and error output ([#92](https://github.com/j178/pre-commit-rs/pull/92))
|
|
895
|
+
- Stash working tree before running hooks ([#96](https://github.com/j178/pre-commit-rs/pull/96))
|
|
896
|
+
- Add color to command trace ([#94](https://github.com/j178/pre-commit-rs/pull/94))
|
|
897
|
+
- Improve hook output display ([#79](https://github.com/j178/pre-commit-rs/pull/79))
|
|
898
|
+
- Improve uv installation ([#78](https://github.com/j178/pre-commit-rs/pull/78))
|
|
899
|
+
- Support docker language ([#67](https://github.com/j178/pre-commit-rs/pull/67))
|
|
900
|
+
|
|
901
|
+
## 0.0.3
|
|
902
|
+
|
|
903
|
+
### Bug fixes
|
|
904
|
+
|
|
905
|
+
- Check uv installed after acquired lock ([#72](https://github.com/j178/pre-commit-rs/pull/72))
|
|
906
|
+
|
|
907
|
+
### Other changes
|
|
908
|
+
|
|
909
|
+
- Add copyright of the original pre-commit to LICENSE ([#74](https://github.com/j178/pre-commit-rs/pull/74))
|
|
910
|
+
- Add profiler ([#71](https://github.com/j178/pre-commit-rs/pull/71))
|
|
911
|
+
- Publish to PyPI ([#70](https://github.com/j178/pre-commit-rs/pull/70))
|
|
912
|
+
- Publish to crates.io ([#75](https://github.com/j178/pre-commit-rs/pull/75))
|
|
913
|
+
- Rename pypi package to `pre-commit-rusty` ([#76](https://github.com/j178/pre-commit-rs/pull/76))
|
|
914
|
+
|
|
915
|
+
## 0.0.2
|
|
916
|
+
|
|
917
|
+
### Enhancements
|
|
918
|
+
|
|
919
|
+
- Add `pre-commit self update` ([#68](https://github.com/j178/pre-commit-rs/pull/68))
|
|
920
|
+
- Auto install uv ([#66](https://github.com/j178/pre-commit-rs/pull/66))
|
|
921
|
+
- Generate shell completion ([#20](https://github.com/j178/pre-commit-rs/pull/20))
|
|
922
|
+
- Implement `pre-commit clean` ([#24](https://github.com/j178/pre-commit-rs/pull/24))
|
|
923
|
+
- Implement `pre-commit install` ([#28](https://github.com/j178/pre-commit-rs/pull/28))
|
|
924
|
+
- Implement `pre-commit sample-config` ([#37](https://github.com/j178/pre-commit-rs/pull/37))
|
|
925
|
+
- Implement `pre-commit uninstall` ([#36](https://github.com/j178/pre-commit-rs/pull/36))
|
|
926
|
+
- Implement `pre-commit validate-config` ([#25](https://github.com/j178/pre-commit-rs/pull/25))
|
|
927
|
+
- Implement `pre-commit validate-manifest` ([#26](https://github.com/j178/pre-commit-rs/pull/26))
|
|
928
|
+
- Implement basic `pre-commit hook-impl` ([#63](https://github.com/j178/pre-commit-rs/pull/63))
|
|
929
|
+
- Partition filenames and delegate to multiple subprocesses ([#7](https://github.com/j178/pre-commit-rs/pull/7))
|
|
930
|
+
- Refactor xargs ([#8](https://github.com/j178/pre-commit-rs/pull/8))
|
|
931
|
+
- Skip empty config argument ([#64](https://github.com/j178/pre-commit-rs/pull/64))
|
|
932
|
+
- Use `fancy-regex` ([#62](https://github.com/j178/pre-commit-rs/pull/62))
|
|
933
|
+
- feat: add fail language support ([#60](https://github.com/j178/pre-commit-rs/pull/60))
|
|
934
|
+
|
|
935
|
+
### Bug Fixes
|
|
936
|
+
|
|
937
|
+
- Fix stage operate_on_files ([#65](https://github.com/j178/pre-commit-rs/pull/65))
|