1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Commit Graph

1204 Commits

Author SHA1 Message Date
Louis Maddox dad650b965 rust: add support for finding packages in virtual workspaces (#1180)
* fix(rust): find packages in virtual workspaces

* chore(deps): add cargo_metadata

* refactor: use cargo_metadata instead of DIY approach

* revert: do not change prek's own typos hook

* Sort deps

* Mention in `diff.md`

* Minor tweaks

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-04 17:18:36 +08:00
renovate[bot] da4cebd333 Update dependency uv to v0.9.15 (#1170)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-04 14:48:42 +08:00
Jo adf92b0f1b Set renovate minimumReleaseAge to 14 days (#1189) 2025-12-04 14:46:46 +08:00
Jo 008d3f4d16 Move badge into docs/assets (#1188) 2025-12-04 11:51:30 +08:00
Francesco Zardi 9a720e94d4 Add favicon for docs website (#1187) 2025-12-04 06:31:25 +08:00
Matthew Mckee bd4da34a51 Add cache size command (#1183) 2025-12-03 12:42:45 +08:00
Louis Maddox 3ff564e8bf Add prek: enabled repo badge (#1171)
As requested in https://github.com/j178/prek/issues/1100
2025-12-02 10:57:07 +08:00
Louis Maddox 6386de2665 Support Rust language (#989)
* feat: add Rust language support

* Misc tweaks

* Avoid rustup auto install

* Revert changes to RUSTUP_TOOLCHAIN

* Avoid auto install in `rustc --version`

* fix: persistent RUSTUP_HOME within target dir

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-01 22:46:53 +08:00
Louis Maddox 8e74998ce8 Make go module cache read-writeable (thus deletable) (#1164)
* fix: make module cache read-writeable (thus deletable)

Closes #1163

* Tweak

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-12-01 18:49:24 +08:00
renovate[bot] 11f1417c09 Update dependency uv to v0.9.13 (#1165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:28:44 +08:00
renovate[bot] 616c80531b Update GitHub Actions (#1166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:28:31 +08:00
renovate[bot] 78b7d945ca Update Rust crate insta to v1.44.3 (#1167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:28:02 +08:00
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