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

13 Commits

Author SHA1 Message Date
Jo
683ad1f786 Revert back to serde_yaml again (#1112) 2025-11-18 22:46:32 +08:00
Jo
236967f63f Warn unexpected keys in repo and hook level (#1096) 2025-11-17 18:10:37 +08:00
Jo
abd6ed428d Tweak config parsing error message (#1094)
* Tweak config parsing error message

* Move code around
2025-11-17 16:24:11 +08:00
Jo
0dd2fcc9b2 Replace serde-yaml with serde_saphyr (#1087)
* .

# Conflicts:
#	Cargo.lock
#	Cargo.toml

* .

* .

* Replace `serde-yaml` with `serde_saphyr`

* Fix sanps

* Fix snaps
2025-11-16 15:58:39 +08:00
Copilot
011a0b3ff1 Rename crate lib/constants to crates/prek-consts and rename lib to crates (#1026)
* Initial plan

* Rename crate lib/constants to lib/prek-consts and fix all references

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

* Rename lib directory to crates and update all references

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2025-11-03 23:16:58 +08:00
yihong
373b0f1607 Support YAML merge keys in .pre-commit-config.yaml (#871)
* fix: close issue #870 by merge and ignore the config

Signed-off-by: yihong0618 <zouzou0208@gmail.com>

* Tweak

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-14 11:25:37 +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
tmdhhl
b1f929a1b6 Warn unexpected keys in config (#463)
* warn unexpected keys.

* Tweak

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-08-15 21:13:37 +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
0f8704d6f8 Upgrade to Rust 2024 edition (#196) 2025-02-21 17:56:12 +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
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