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

26 Commits

Author SHA1 Message Date
Steven Taylor
7161581362 Allow using system trusted store by PREK_NATIVE_TLS (#959) 2025-10-26 03:56:02 +08:00
Les Freire
ed3f357f85 Support language: lua hooks (#954)
* Add Lua language support

Refactor Lua integration: streamline async functions and improve rockspec file handling

Add Lua and LuaRocks installation steps to CI workflow

Add MSVC development command to CI workflow

Update CI workflow to specify Windows-only dependencies for MSVC and Lua installations

Update CI workflow to use official Lua and LuaRocks GitHub actions

Update CI workflow to specify Windows-only dependencies for Lua and LuaRocks installations

Update CI workflow to use PowerShell for Cargo test execution and improve command formatting

Add platform-specific command snapshots for Lua tests

Enhance the Lua test environment by adding separate command snapshots for Windows and non-Windows platforms. This ensures accurate output handling based on the operating system, improving test reliability and clarity.

Update CI workflow to use specific versions of Lua and LuaRocks actions

Refactor Lua dependency installation and update test cases

Refactor Lua command execution to streamline environment path handling

Fix dependencies installing

Fix remote repo hook

* Add lua remote_hook test

* Tweaks

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-24 19:36:38 +08:00
Jo
a4e8f20c8d Support language_version: system (#949)
* .

* Support `language_version: system`

* Fix python downloads
2025-10-21 20:23:32 +08:00
Jo
e3c00f7214 Ignore the user-set UV_MANAGED_PYTHON (#900) 2025-10-16 16:44:50 +08:00
Jo
df852e914a Add a hint when hooks failed in CI (#800)
* .

* Add a hint when hooks failed in CI

* Fix tests
2025-09-26 13:27:55 +08:00
Jo
0ba14e2f1d Add support for specifying PREK_UV_SOURCE (#766)
* Add support for specifying `PREK_UV_SOURCE`

* Fix

* Improve

* debug

* Fix
2025-09-20 18:24:35 +08:00
Jo
6f0a7da41b Generate cli reference (#707)
* Generate cli reference

* Fix lint
2025-09-10 22:05:05 +08:00
Ed Page
89e948b5fa docs(manifest): Correctly specify metadata for all packages (#687)
* docs: Set repository on every member

* docs: Specify license as MIT

`license-file` is meant for custom licenses and not for specifying the
text of a standard license.

See also
- rust-lang/cargo#12053
- rust-lang/cargo#5933

* docs: Specify the license for all packages
2025-09-09 21:49:52 +08:00
Jo
bc1b423a94 Bring back .pre-commit-config.yml support (#676)
* Bring back `.pre-commit-config.yml` support

* Fix snaps
2025-09-08 19:39:46 +08:00
Jo
e9fc08bc6b Implement project and hook selector (#623)
* selection

* .

* complete

* rewrite

* Fix

* Fix docs

* Update doc

* Fix single config mode

* Improve

* Fix doc

* Fixes and tweaks

* Fix tests

* Fixes and tests

* Use path clean instead of canonicalized
2025-09-06 16:44:22 +08:00
Jo
5c94c21b9f Add a shortcut to run original pre-commit to check output (#419) 2025-08-11 11:48:46 +08:00
Jo
23f865819a Rename project to prek from prefligit (#402) 2025-08-08 23:12:20 +08:00
Jo
875202a7c1 Set GOROOT when installing golang hook (#381)
* Improve log message

* set go root
2025-08-07 15:53:26 +08:00
Jo
e46e969447 Set GOBIN to <hook-env>/bin, set GOPATH to $PREGLIGIT_HOME/cache/go (#369) 2025-08-06 19:20:36 +08:00
Jo
b46822d236 Support golang hooks and golang toolchain management (#355)
* .

# Conflicts:
#	src/languages/node/installer.rs
#	src/languages/version.rs

* .

# Conflicts:
#	src/languages/node/version.rs
#	src/languages/python/version.rs

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

* .

# Conflicts:
#	src/languages/node/node.rs

* .

* .

* .

* fix tests

* Add a remote test

* minor
2025-08-05 19:17:50 +08:00
Jo
ae7793ba8b Improve node support (#346) 2025-08-05 00:38:50 +08:00
Jo
e5e872fcd5 Manage uv cache dir (#345) 2025-08-04 23:07:39 +08:00
Jo
c70122f23b Add sample-config --file to write sample config to file (#313) 2025-08-02 23:06:28 +08:00
Jo
c28ca26c47 Try default uv managed python first, fallback to download (#291)
* .

* Try default uv managed python first, fallback to download

* Fix
2025-08-01 12:07:33 +08:00
Jo
b9acf150d1 Support downloading requested Python version automatically (#281)
* Support auto download requested Python version

* Add test

* Fix

* Fix windows test
2025-08-01 00:27:02 +08:00
Jo
448b29022d Add PREFLIGIT_NO_FAST_PATH to disable Rust fast path (#272) 2025-07-29 14:40:43 +08:00
Jo
78dfe0eefc Refactor language version resolution and hook install dir (#221)
* .

* .

* .

* .

* .

* Fix tests

* Improve

* Fix
2025-03-12 13:58:27 +08:00
Jo
afe6dfb540 Simplify env vars reading (#178) 2025-02-13 23:20:36 +08:00
Jo
0aae916843 Disallow std::env::var (#177) 2025-02-13 20:28:07 +08:00
Jo
f72e5e6c62 Fallback some env vars to to pre-commit (#175) 2025-02-13 20:13:42 +08:00
Jo
58c4d621bd Make env vars a shareable crate (#171) 2025-02-11 11:53:37 +08:00