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

64 Commits

Author SHA1 Message Date
Jo
3dfab69c1d Cache workspace discovery result (#636)
* Cache workspace discovery result

* Add `--refresh` to refresh cached data

* Add docs about workspace cache
2025-09-07 00:26:38 +08:00
Hugo van Kemenade
6cd06f5f8a Docs: .pre-commit-config.yml support has been removed (#630) 2025-09-06 20:19:36 +08:00
Jo
5cbdeecccb Publish docs (#627) 2025-09-06 18:08:56 +08:00
Jo
bf663fb83f Rename BENCHMARK.md to benchmark.md 2025-09-06 16:46:44 +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
18f205f044 Improve workspace docs about skips rule (#615) 2025-09-06 16:44:22 +08:00
Jo
dadc033948 Update workspace design doc (#613) 2025-09-06 16:44:22 +08:00
Jo
61c364b65c Add design about Project and Hook Selection (#612) 2025-09-06 16:44:22 +08:00
Jo
055e493fac Support prek install|install-hooks|hook-impl|init-template-dir in workspace mode (#595)
* Support `prek install|install-hooks|hook-impl|init-template-dir` in workspace mode

* Fix

* Fix windows
# Conflicts:
#	src/cli/hook_impl.rs
#	tests/hook_impl.rs

# Conflicts:
#	src/cli/install.rs
2025-09-06 16:44:22 +08:00
Jo
8d644ef337 Fix config not staged relative filename display (#585)
* .

* Fix config not staged relative filename display
2025-09-06 16:44:22 +08:00
Jo
bb469d38bb Add an full example and update docs (#582) 2025-09-06 16:44:22 +08:00
Jo
f089db0699 Add prek run --cd <dir> to change directory before running (#581) 2025-09-06 16:44:22 +08:00
Jo
a5a1b3b2b0 Support multiple .pre-commit-config.yaml in a workspace (monorepo mode) (#481)
* Remove color from trace log

Since `tracing-subscriber 0.3.20`, ANSI codes will be escaped so that color can not be shown in log. 4c52ca5266

* Refactor project constructure

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

* .

# Conflicts:
#	src/workspace.rs

# Conflicts:
#	src/workspace.rs

# Conflicts:
#	src/workspace.rs

.

# Conflicts:
#	src/git.rs

# Conflicts:
#	src/git.rs

# Conflicts:
#	src/git.rs
#	src/languages/script.rs

Support multiple `.pre-commit-connfig.yaml` in a workspace (monorepo mode)

.

.

Make it compile

Fix

.

.

.

Fix

Fix

Fix

.

.

.

# Conflicts:
#	src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs
#	src/builtin/pre_commit_hooks/mod.rs
#	src/hook.rs
#	src/languages/docker.rs
#	src/languages/docker_image.rs
#	src/languages/golang/golang.rs
#	src/languages/node/node.rs
#	src/languages/python/python.rs
#	src/languages/system.rs
#	src/run.rs

* Refactor

* Fix

* .

* Fix `--config FILE`

* Add docs

* Misc

* Fix
# Conflicts:
#	README.md
2025-09-06 16:44:22 +08:00
Jo
ff55ad166e Move some files into docs subdirectory (#554) 2025-08-26 21:49:01 +08:00