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
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
Jo 0d0509f4f3 Bump version to 0.2.15-alpha.1 (#1089) 2025-11-16 18:07:51 +08:00
Jo 8292d951b8 Prepare for publishing to crates.io (#1088)
* Add descriptions for crates

* Add version

# Conflicts:
#	Cargo.toml

* Add action

* Fix
2025-11-16 17:36:51 +08:00
Jo 0dd2fcc9b2 Replace serde-yaml with serde_saphyr (#1087)
* .

# Conflicts:
#	Cargo.lock
#	Cargo.toml

* .

* .

* Replace `serde-yaml` with `serde_saphyr`

* Fix sanps

* Fix snaps
2025-11-16 15:58:39 +08:00
renovate[bot] 37d65d5825 Update Rust crate fs-err to v3.2.0 (#1086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-16 11:04:03 +08:00
Jo e8f65dfd58 Clean up hook environments when install fails (#1085) 2025-11-15 23:40:28 +08:00
Jo f65fcb48ef Revert "Use mimalloc and tikv-jemallocator as global allocator (#1082)" (#1084)
This reverts commit a670b814b2.
2025-11-15 14:55:04 +08:00
Jo 544bd32860 Remove unused url dependency (#1083) 2025-11-15 14:54:07 +08:00
Jo a670b814b2 Use mimalloc and tikv-jemallocator as global allocator (#1082) 2025-11-15 14:35:20 +08:00
Jo cd8d8fdb52 Migrate to astral_async_zip on crates.io (#1081)
* Migrate to astral_async_zip on crates.io

* Fix lint
2025-11-15 14:21:05 +08:00
renovate[bot] 436bf6304f Update dependency uv to v0.9.9 (#1077)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 13:32:31 +08:00
renovate[bot] fd71025ab4 Update pre-commit hook crate-ci/typos to v1.39.2 (#1079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 13:32:11 +08:00
renovate[bot] 16edd6479a Update dependency node to v24 (#1080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 13:31:52 +08:00
renovate[bot] 2c29a40b3b Update GitHub Actions (#1078) 2025-11-15 13:13:43 +08:00
Jo 30355ea9b4 Bump version to 0.2.14 (#1075) v0.2.14 2025-11-14 23:07:29 +08:00
Copilot f43b60f97c Improve hint to remove core.hooksPath (#1074)
* Support rootless container (#1018)

* Initial plan

* Update hint to include both local and global core.hooksPath removal commands

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-11-14 22:51:36 +08:00
Steven Taylor e879894759 Support rootless container (#1018)
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-11-14 22:42:21 +08:00
Jo e672f83235 Support language: unsupported and language: unsupported_script introduced in pre-commit v4.4 (#1073)
* Support `language: unsupported` and `language: unsupported_script` introduced in pre-commit v4.4

Honestly, I have no idea why `system` and `script` got deprecated or what we're supposed to use instead. I probably won't deprecate them in prek.

* Fix lint
2025-11-14 15:53:21 +08:00
Sandu 597ad58b22 Run uv pip install from the current directory (#1068) (#1069) 2025-11-14 13:36:38 +08:00
Jo cc6fb514e3 Fix --files argument - files referencing other projects aren’t being filtered (#1064) 2025-11-14 13:35:52 +08:00
Copilot 04377fe568 Document workspace file visibility constraints (#1071)
* Initial plan

* Add documentation clarifying workspace file visibility constraints

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Make File Visibility Constraints a subsection and condense content

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-11-14 13:35:34 +08:00
Jo dc3d061e44 Add scoop to installation (#1067) 2025-11-12 19:09:02 +08:00
Copilot e08a239420 Add humanize to list of projects using prek (#1063) 2025-11-12 12:19:05 +08:00
yihong 86f4d60a59 Use temp dir for ruby test (#1058)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-11-10 23:05:41 +08:00
Jo 2765bdee15 Save rust cache for CI jobs on main only (#1056)
Take inspiration from https://github.com/astral-sh/ruff/pull/21359
2025-11-10 17:39:59 +08:00
Jo 2f524787e7 Unset objectFormat in git init (#1048)
* Unset `extensions.objectFormat` in the remote repo

* Use `init.defaultObjectFormat=`
2025-11-09 17:46:26 +08:00
Jo 93accca92c Update project status in docs (#1052)
This is missed from #1005
2025-11-09 13:36:25 +08:00
Jo 1032757a83 Add a hint to use --refresh when no configuration found (#1046) 2025-11-08 18:45:51 +08:00
Jo 45e33109ad Remove examples directory (#1047) 2025-11-08 15:02:31 +08:00
Jo 2a77fd57a5 Add a hint to install when running inside a sub-project (#1045)
* Add a hint to install when running inside a sub-project

* Fix snap
2025-11-07 18:28:56 +08:00
Jo 7b608841b0 Mention PREK_CONTAINER_RUNTIME in diff.md (#1043) 2025-11-07 17:24:15 +08:00
Steven Taylor b957e17dd1 Support PREK_CONTAINER_RUNTIME=podman to override container runtime (#1033)
* feat: container runtime selection

use both docker and podman runtimes

1. if only docker on path use docker runtime
2. if only podman on path use podman runtime
3. to specify runtime use PREK_CONTAINER_RUNTIME

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>

* Tweak detection

---------

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-11-07 17:12:35 +08:00
Jo fc52e3657b Add msgspec to "Who is using prek" (#1042) 2025-11-07 17:08:32 +08:00
nate nowack 6b72fdf5d5 Fix grammar in install message: use past tense 'moved' (#1041)
The install command actually moves the existing hook file automatically,
so the message should say 'moved it to' rather than 'move it to' (which
reads like an instruction to the user).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-07 11:00:44 +08:00
yihong 6c187f2c21 Add iceberg-python to "who is using prek" (#1039)
* docs: add new user

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* docs: nit the root PR

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
2025-11-06 16:10:40 +08:00
Jo c4016e3011 Limit container id from /proc/self/cgroup must the 64 characters (#1038) 2025-11-05 11:18:18 +08:00
Steven Taylor d971404061 Update regex to parse mountinfo for container id (#1037)
update regex to parse mountinfo for container id so that it supports
docker rootful, docker rootless, podman rootful and podman rootless.
unit tests updated to cover thee 4 variations

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
2025-11-05 11:03:16 +08:00
Jo 9c70b50930 Bump version to 0.2.13 (#1036) v0.2.13 2025-11-04 22:05:02 +08:00
Steven Taylor 0318e3673a Improve container id detection (#1031)
* fix: improve container id detection

improve the detection of contiainer id when prek running in container
tries to match on cgroups v1 first then cgroups v2, far from perfect but
there is no concrete method for this

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>

* Improve container id parsing

---------

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-11-04 21:24:37 +08:00