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

22 Commits

Author SHA1 Message Date
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