Jo
a4e8f20c8d
Support language_version: system ( #949 )
...
* .
* Support `language_version: system`
* Fix python downloads
2025-10-21 20:23:32 +08:00
Les Freire
4a1e907150
Implement no-commit-to-branch as builtin hook ( #930 )
...
* feat: (no-commit-to-branch) implement builtin hook
Enhance error handling
Refactor no_commit_to_branch function to simplify branch protection logic and improve error handling
Simplified current branch parsing and improved error messages for better clarity.
Refactor no_commit_to_branch hook to enhance argument handling and branch protection logic.
Consistent with pre-commit implementation and additional testing
Simplify the logic of check_protected
fix logic error
* Delete redundant comments
* Tweak
---------
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-10-20 13:27:42 +08:00
Luiz Otavio Vilas Boas Oliveira
74cb495dea
Implement prek try-repo ( #797 )
...
* Add try_repo logic and tests (WIP)
* Remove unnecessary mut
* Fix clippy issues
* Add unit test
* Update snapshots
* Update docs
* Update unit test
* WIP
* Update snapshots
* Lint
* Add extra filters to try_repo tests
* Lint
* Update unit tests
* Apply Josh's suggestions
* Fix arg name
* .
* Fix
* Fix
* Generate
* Fix snapshot
* Improve coverage
---------
Co-authored-by: Jo <10510431+j178@users.noreply.github.com >
2025-10-10 21:11:31 +08:00
Jo
9a4fb2be88
Ignore config error if the directory is skipped ( #860 )
...
* Ignore config error if the directory is skipped
* Add test
2025-10-09 19:58:31 +08:00
Jo
04bb76fcb4
Add prek cache dir, move prek gc and prek clean under prek cache ( #795 )
...
`prek gc` and `prek clean` are still available but hidden.
2025-09-25 13:36:41 +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
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
8e230b1141
Implement prek auto-update ( #511 )
...
* .
* Implement `pre auto-update`
* .
* Add tests
* Windows
* Update tests
2025-08-20 18:17:40 +08:00
Jo
3ac5e2beb0
Fix inde.lock file exists error when running git commit -p or git commit -a ( #482 )
...
* Fix `inde.lock file exists` error when running `git commit -p` or `git commit -a`
* Add test
* Add tests
* Windows
2025-08-18 11:00:51 +08:00
Jo
42fc2f6ec7
Implement prek list to list available hooks ( #424 )
...
* .
* Implement `prek list` to list available hooks
2025-08-11 19:31:38 +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
7bd667e0c1
Improve language tests ( #382 )
...
* Exclude `go`/`node` from PATH when running tests
* Improve language tests
2025-08-07 16:17:22 +08:00
Miao
48a9252163
Fix large file check to use staged_get instead of intent_add ( #332 )
2025-08-04 21:55:07 +08:00
Jo
1c034a1afb
Ignore config not staged error for config outside the repo ( #270 )
...
* Use `sync_all` over `flush`
* Ignore config not staged for config outside the repo
* improve test
2025-07-29 09:56:09 +08:00
Jo
ec28f449cc
Implement install-hooks ( #258 )
...
* Implement `install-hooks`
* Add tests
2025-07-28 13:33:24 +08:00
Jo
0aae916843
Disallow std::env::var ( #177 )
2025-02-13 20:28:07 +08:00
Jo
58c4d621bd
Make env vars a shareable crate ( #171 )
2025-02-11 11:53:37 +08:00
Jo
586186b2ee
Upgrade Rust to 1.84 and upgrade dependencies ( #161 )
...
* Cargo update
* Upgrade rust to 1.84 and upgrade dependencies
* Fix snapshot
* Sort filenames in test
* fmt
* Debug
* Use ordered buffer concurrent
* Rollback debug
2025-02-06 18:09:42 +08:00
Jo
6f2e9a96aa
Move home dir to ~/.cache/prefligit ( #154 )
2024-12-19 21:07:13 +08:00
Jo
8dfb3101ff
Rename project name to prefligit ( #118 )
...
* Rename project to `prefligit`
* Bump to 0.0.6
* Fix tests
* Add a rename note
2024-12-03 13:20:00 +08:00
Lemon
b3619bada8
feat: support docker_image ( #113 )
...
* feat: support docker_image
* test: add docker_image test case
* test: fix test failed when git default branch set `main`
* Minor tweaks
---------
Co-authored-by: j178 <10510431+j178@users.noreply.github.com >
2024-11-25 15:32:15 +08:00
Jo
3113e8400a
Improve tests ( #106 )
...
* Improve tests
* Fix
2024-11-23 21:34:48 +08:00
Jo
cd70f74f48
Implement get filenames from merge conflicts ( #103 )
...
* t
* Implement get filenames from merge conflicts
* Add a test
2024-11-23 00:16:11 +08:00
Jo
5384ab187f
Stash working tree before running hooks ( #96 )
...
* Add test
* Fix test
* add signal test
* Fix test
* Fix tests
* Fix tests
2024-11-21 21:57:30 +08:00
Jo
08dc3893aa
Add two helper functions to TestContext ( #84 )
...
* Add two helper functions to TestContext
* fix
2024-11-20 18:19:30 +08:00
Jo
b087883dd9
Implement basic pre-commit hook-impl ( #63 )
...
* Initial commit
* Implement `pre-commit hook-impl`
* fix test
* Fix test
2024-11-14 17:30:53 +08:00
Jo
3739e8ae63
Implement pre-commit sample-config ( #37 )
2024-11-11 20:51:14 +08:00
Jo
0399d08dca
Implement pre-commit install ( #28 )
...
* Implement `pre-commit install`
* Improve script
* Add tests
* fix test
* debug windows
* fix
2024-11-11 20:28:30 +08:00
Jo
ff765eca12
Implement pre-commit validate-manifest ( #26 )
2024-11-10 17:34:07 +08:00
Jo
0ab81e58be
Implement pre-commit validate-config ( #25 )
2024-11-10 17:24:38 +08:00
Jo
7bd22658d0
Implement pre-commit clean ( #24 )
...
* Implement `pre-commit clean`
* Fix tests
2024-11-10 16:01:31 +08:00
j178
aa6173b6bd
Fix clippy
2024-10-29 13:12:30 +08:00
j178
81d745a5c0
Fix tests
2024-10-28 23:34:42 +08:00
j178
f7ea2dc349
Fix test collision
2024-10-28 23:06:03 +08:00
j178
abb963aee6
Add CI
2024-10-28 22:18:41 +08:00
j178
144a0210bd
Cache repos for integration test
2024-10-28 21:48:39 +08:00
j178
a4043b7e00
Fix integration test
2024-10-27 03:18:17 +08:00
j178
adec98d2be
Many fixes
2024-10-14 01:19:52 +08:00
j178
304c1653f0
Fix test
2024-10-10 15:04:50 +08:00
j178
fab714d86e
Add test framework
2024-10-10 13:58:29 +08:00