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 de3d015aee Add Codecov badge to README (#667)
Added Codecov badge to README for coverage tracking.
2025-09-08 11:42:40 +08:00
renovate[bot] 3e86bb0ca3 Update codecov/codecov-action action to v5.5.1 (#666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:32:14 +08:00
Jo 7f29846a89 Add cargo-llvm-cov for code coverage (#660)
* Add `cargo-llvm-cov` for code coverage

* Fix

* Fix
2025-09-08 11:28:07 +08:00
renovate[bot] 1cd10cd7a6 Update actions/setup-go action to v6 (#662)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:16:28 +08:00
renovate[bot] 6266dbc352 Update actions/setup-node action to v5 (#663)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:16:06 +08:00
renovate[bot] d32d1c531e Update actions/setup-python action to v6 (#664)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:15:46 +08:00
renovate[bot] d32106c903 Update actions/checkout action to v5 (#661)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-08 11:13:36 +08:00
renovate[bot] 985655e833 Update Rust crate insta to v1.43.2 (#653) 2025-09-08 09:36:49 +08:00
renovate[bot] e615c8bddc Update taiki-e/install-action action to v2.59.1 (#659) 2025-09-08 09:35:13 +08:00
renovate[bot] c8bb0e8c4b Update actions/deploy-pages action to v4.0.5 (#650) 2025-09-08 09:34:45 +08:00
renovate[bot] 4c63d49cd8 Update astral-sh/setup-uv action to v6.6.1 (#651) 2025-09-08 09:34:32 +08:00
renovate[bot] dd4dc27af1 Update actions/checkout action to v4.3.0 (#654) 2025-09-08 09:34:11 +08:00
renovate[bot] d99a95d762 Update actions/setup-python action to v5.6.0 (#655) 2025-09-08 09:33:48 +08:00
renovate[bot] b45a5bdd4b Update dependency python to 3.13 (#656) 2025-09-08 09:33:31 +08:00
renovate[bot] 3c963817ca Update pre-commit hook crate-ci/typos to v1.36.2 (#657) 2025-09-08 09:33:14 +08:00
Jo 4cb4f7ca54 Add a warning to hook-impl when the script needs reinstall (#647)
* Add a warning to `hook-impl` when the script needs reinstall

* add hook type

* update snaps
2025-09-07 20:35:52 +08:00
Jo 6303ddd2ed Add a notice to rerun prek install when upgrading to 0.2.0 (#646) 2025-09-07 19:40:46 +08:00
Jo 36678d0ef4 Use a rooster fork (#643) 2025-09-07 18:24:50 +08:00
Jo 9fcc878a67 Update installer link 2025-09-07 16:22:43 +08:00
Jo e404b618cf Bump version to 0.2.0-alpha.2 (re-release of 0.2.0-alpha.1) (#642) v0.2.0-alpha.2 2025-09-07 16:01:00 +08:00
Jo 101498dee1 Enable publishing prereleases (#641) 2025-09-07 15:39:28 +08:00
Jo 2ad6d1b2da Bump version to 0.2.0-alpha.1 (#640)
* Bump version to 0.2.0a1

* Fix version regex

* Update doc
v0.2.0-alpha.1
2025-09-07 15:24:27 +08:00
Jo 1bc65c8283 Implement selector completion in workspace mode (#639)
* .

* Implement selector completion
2025-09-07 15:05:19 +08:00
Jo d1f364278c Fix docker mount in workspace mode (#638)
* Fix docker mount in workspace mode

* Add test
2025-09-07 03:00:07 +08:00
Jo ef7d73b9ac Show project line when project is not root (#637)
* Show project line when project is not root

* Update snap
2025-09-07 02:27:02 +08:00
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
Jo 250dd9c3e4 Disable some renovate managers (#635) 2025-09-06 21:12:28 +08:00
renovate[bot] f4b628e926 Update pre-commit (examples) (#634)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 21:04:57 +08:00
Jo 290859ec7f Group pre-commit dep updates (#633) 2025-09-06 21:01:01 +08:00
renovate[bot] dc5d4aee30 Pin dependencies (#632)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-06 20:49:40 +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 23cf6adda4 Fix publish-docs job permissions (#629)
* Fix publish-docs permissions

* Fix `publish-docs` job permissions
2025-09-06 19:42:03 +08:00
Luiz Otavio Vilas Boas Oliveira 7b58c02700 Add a --dry-run flag to prek run (#622)
* Add dry-run argument

* Add unit tests

* Clippy

* Fix unit test

* Lint

* Tweak

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-09-06 19:24:43 +08:00
Jo aab041e3e7 Update benchmark links in README.md 2025-09-06 18:12:10 +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 6f8ee64df6 Simplify auto-update implementation (#608) 2025-09-06 16:44:22 +08:00
Jo 1b1eddf7e7 Implement auto-update in workspace mode (#605)
* Implement `auto-update` in workspace mode

* Deduplicate remote hooks

* Minor
2025-09-06 16:44:22 +08:00
Jo 2cd8f0fcb8 Fix local script hook entry path in workspace mode (#603) 2025-09-06 16:44:22 +08:00
Jo f6034483a5 Fix hook-impl allow missing config (#600) 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 7f10e34e23 Support prek list in workspace mode (#586)
* Support `prek list` in workspace mode

* Update snapshot
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. https://github.com/tokio-rs/tracing/commit/4c52ca5266a3920fc5dfeebda2accf15ee7fb278

* 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