1
0
mirror of https://github.com/j178/prek.git synced 2026-04-30 10:20:26 +02:00

12 Commits

Author SHA1 Message Date
Jo 292063956f Refactor Rust toolchain management (#1198)
* Refactor Rust toolchain management

- Reuse system installed rustup
- Reuse installed rustup across hooks
- Reuse installed Rust toolchains across hooks

* Fix tests

* Avoid using bare cargo

* Update crates/prek-consts/src/env_vars.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-08 16:41:06 +08:00
Jo 2497649b05 Disable git terminal prompts (#1193) 2025-12-05 11:29:16 +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
Jo 05bf37389d Make sure uv pip install uses the Python from virtualenv (#1108) 2025-11-18 16:17:45 +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
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 e62fffb256 Minor tweaks for parse_boolish (#1035) 2025-11-04 12:25:16 +08:00
Steven Taylor e4334198f3 Move parse_boolish to EnvVars (#1030)
refactor parse boolish, moved into env_vars and additional convenience
method to read env var and treat as bool

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
2025-11-04 03:21:18 +08:00
Copilot 011a0b3ff1 Rename crate lib/constants to crates/prek-consts and rename lib to crates (#1026)
* Initial plan

* Rename crate lib/constants to lib/prek-consts and fix all references

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

* Rename lib directory to crates and update all references

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-03 23:16:58 +08:00