Benjamin Bannier
ee7110b49b
Fix autoupdate rev rendering for "float-like" version numbers ( #867 )
...
A version number could look like a float, e.g., 0.49 is a valid version
number. Serde YAML serialization already renders such version numbers in
quotes so types match the expectation. When doing an autoupdate we were
explicitly adding more quotes if they were present in the input. This
could have caused incorrect quoting if existing quoting clashed with
serde's quoting style, e.g., if `"` where used but serde defaulted to
quoting with `'`.
This patch removes any extra quoting here and fully defers to serde.
Closes #866 .
2025-10-11 18:27:48 +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
d0f7c4d6b0
Add --dry-run to prek auto-update ( #806 )
2025-09-28 12:06:44 +08:00
Jo
022ef1824c
auto-update: prefer tags that are most similar to the current version ( #719 )
...
* auto-update: prefer tags that are most similar to the current version
* Add test
2025-09-15 21:35:44 +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
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
7e080ddaeb
Add check for missing hooks in new revision ( #521 )
2025-08-20 20:42:50 +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