1
0
mirror of https://github.com/j178/prek.git synced 2026-04-03 17:34:03 +02:00
Commit Graph

992 Commits

Author SHA1 Message Date
renovate[bot]
2e140e8ea6 Update tokio-tracing monorepo (#1168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:27:33 +08:00
renovate[bot]
cebb2f55ee Update pre-commit hook crate-ci/typos to v1.40.0 (#1169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:27:19 +08:00
Jo
1bb181ffa3 Add a FAQ page explaning prek install --install--hooks (#1162) 2025-11-29 19:52:52 +08:00
Jo
09ece9a3c6 Prevent color output when redirecting stdout to a file (#1159) 2025-11-27 20:22:52 +08:00
joshuamarkovic
59230a7a72 Support orphan projects (#1129)
* Add deduplicate feature

# Conflicts:
#	src/cli/run/filter.rs

* Linting

* Linting

* Fix failed test

* Fix failed test

* More testing

* Revert "More testing"

This reverts commit 40304335c49d27f7024703da4f3ac4d775af52f7.

* Linting

* Support orphan projects

* Support orphan projects

* Fix filter

* Add a failing test

* "orphan" is an static attribute, always in effect

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-11-27 13:47:41 +08:00
Jo
c3b833cd45 Add MacPorts to installation methods (#1157) 2025-11-26 17:35:48 +08:00
Jo
bdc40e36aa Bump version to 0.2.19 (#1156) v0.2.19 2025-11-26 17:14:35 +08:00
Jo
dfb5a1c787 Close stdin for hook subcommands (#1155)
* Close stdin for hook subcommands

* Add tests
2025-11-26 17:04:16 +08:00
Matthias Hörtenhuber
35c2b0ad29 Add nf-core to users list (#1153) 2025-11-26 11:39:03 +08:00
ChiLin Chiu
95eb880b5a Fix typo “Not” to “Note” in the Automatic Fast Path section (#1148) 2025-11-23 16:28:51 +08:00
Jo
834a11b887 Some minor tweaks (#1147) 2025-11-23 14:58:28 +08:00
Jo
ea415d9007 Reduce repeated code in collect_unused_paths (#1145) 2025-11-23 00:53:30 +08:00
Jo
708cccc75c Minor tweaks to filters (#1144)
* Minor tweaks to filters

* Keep order after .par_bridge

* Revert
2025-11-22 23:58:17 +08:00
Jo
472d02d879 Skip running git config if there’s no .gitmodules file (#1143) 2025-11-22 14:29:32 +08:00
Jo
3aaefabc64 Remove an unnecessary use of rayon (#1142)
* Remove an unnecessary use of rayon

* .

* env vars
2025-11-22 12:49:06 +08:00
Jo
542fbe8813 Fix parsing Python interpreter info containing non-UTF8 chars (#1141) 2025-11-22 12:15:37 +08:00
Jo
e84a843acc Tweaks to windows extension comparison (#1140)
* fix

* tweak

---------

Co-authored-by: j178 <j178@users.noreply.github.com>
2025-11-22 10:49:56 +08:00
Jo
ba3026ade6 Simplify fix_byte_order_marker hook (#1136) 2025-11-21 23:54:56 +08:00
Jo
449220e787 Simplify trailing-whitespace hook to improve performance (#1135) 2025-11-21 23:27:04 +08:00
nblock
66f773afb4 Remove completion subcommand from shell completion docs (#1133) 2025-11-21 22:19:57 +08:00
Jo
5c9fce63be Bump version to 0.2.18 (#1132)
* Bump version to 0.2.18

* Add highlights
v0.2.18
2025-11-21 20:41:20 +08:00
Jo
bc15383280 Further reduce max cli length for cmd.exe on Windows (#1131) 2025-11-21 20:29:27 +08:00
renovate[bot]
373ed413bc Update actions/checkout action to v6 (#1128) 2025-11-21 07:20:46 +08:00
Jo
6dda4aa9f6 Do not dim the hook output (#1126)
* Do not dim the hook output

* Update snapshots
2025-11-20 19:16:55 +08:00
Jo
98b0871456 Add more tracing instrument (#1127) 2025-11-20 18:48:02 +08:00
Jo
ede0277df3 Enable enable virtual terminal processing on Windows (#1123) 2025-11-20 12:41:02 +08:00
Jo
209ef284e4 Tweak to submodule check (#1122) 2025-11-20 11:09:09 +08:00
Jo
ec74c968ef Do not recurse into submodules during workspace discovery (#1121)
* .

* Do not recurse into submodules during workspace discovery
2025-11-19 20:02:11 +08:00
Jo
07838e50d2 Revert "Disallow hook-level minimum_prek_version (#1101)" (#1120)
This reverts commit ed7c024170.
2025-11-19 18:18:07 +08:00
Jo
3e88436974 Add support repo: builtin (#1118)
* Add support `repo: builtin`

* Add docs

* Fixes

* Skip install for builtin hooks
2025-11-19 17:29:14 +08:00
Wei Lee
d73dfbdaa7 docs: refer airflow as Apache Airflow (#1116) 2025-11-19 12:14:36 +08:00
Jo
d4adff2ff9 Tweaks to init-template-dir (#1115) 2025-11-19 11:43:35 +08:00
Jo
5110eb9fc1 Bump version to 0.2.17 (#1114) v0.2.17 2025-11-18 23:04:44 +08:00
Jo
68c8bd7a68 Add a test for yaml list with unindented trailing square (#1113) 2025-11-18 23:00:09 +08:00
Jo
683ad1f786 Revert back to serde_yaml again (#1112) 2025-11-18 22:46:32 +08:00
Jo
df5068a797 Bump version to 0.2.16 (#1110) v0.2.16 2025-11-18 17:52:07 +08:00
Jo
aed7e555d0 Restore using serde_yaml in check-yaml hook (#1106)
* Fix check-yaml: do not try to parse !!binary scalar into UTF-8 string

* Restore using `serde_yaml` in `check-yaml` hook

* Update snaps
2025-11-18 17:25:52 +08:00
Jo
bdaab388cc Do not require a project in prek init-template-dir (#1109)
* Do not require a project in `prek init-template-dir`

* Add test

* Discover project too
2025-11-18 16:47:44 +08:00
Jo
05bf37389d Make sure uv pip install uses the Python from virtualenv (#1108) 2025-11-18 16:17:45 +08:00
Jo
ed7c024170 Disallow hook-level minimum_prek_version (#1101) 2025-11-17 22:07:25 +08:00
renovate[bot]
19e97f7c92 Update Rust crate serde-saphyr to 0.0.8 (#1099) 2025-11-17 19:26:19 +08:00
Jo
11f369ed7a Bump version to 0.2.15 (#1098) v0.2.15 2025-11-17 18:41:36 +08:00
Jo
ce8faf7ea5 Add some more error context (#1097) 2025-11-17 18:30:05 +08:00
Jo
236967f63f Warn unexpected keys in repo and hook level (#1096) 2025-11-17 18:10:37 +08:00
Jo
af779bed9e Simplify config deserialization (#1095) 2025-11-17 16:50:17 +08:00
Jo
abd6ed428d Tweak config parsing error message (#1094)
* Tweak config parsing error message

* Move code around
2025-11-17 16:24:11 +08:00
Jo
f38fe38329 Fix prek init-template-dir fails in non-git repo (#1093) 2025-11-17 15:25:53 +08:00
Jo
f46e6f9011 Fix npmjs publish action 2025-11-16 19:44:28 +08:00
Jo
7e06cffa70 Bump version to 0.2.15-alpha.3 (#1091)
* Fix release

* Bump version to 0.2.15-alpha.3
2025-11-16 19:26:06 +08:00
Jo
bf8dc871e5 Bump version to 0.2.15-alpha.2 (#1090)
* Revert "Bump version to 0.2.15-alpha.1 (#1089)"

This reverts commit 0d0509f4f3.

* Bump

* Bump version to 0.2.15-alpha.2
2025-11-16 18:39:38 +08:00