1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00
Commit Graph

195 Commits

Author SHA1 Message Date
Jo 1b935db40e Apply color option to log (#100) 2024-11-22 14:43:02 +08:00
j178 476f693d2e Bump version to v0.0.5 v0.0.5 2024-11-21 22:58:39 +08:00
Jo 7883b87021 Remove cargo package include temporarily (#98) 2024-11-21 22:42:48 +08:00
Jo d617786d3e Bump version to 0.0.4 (#97)
* Bump version to 0.0.4

* Fix
v0.0.4
2024-11-21 22:06:20 +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 816f655d0b Add color to command trace (#94) 2024-11-21 17:14:14 +08:00
Jo 191bf41265 Remove one clone on GIT command (#93) 2024-11-21 17:14:01 +08:00
Jo 2677612af7 Improve subprocess trace and error output (#92) 2024-11-21 16:48:59 +08:00
j178 23402f0095 Revert "Tweak platform specific code"
This reverts commit c1c611d4fc.
2024-11-21 13:43:21 +08:00
j178 c1c611d4fc Tweak platform specific code 2024-11-21 13:33:29 +08:00
Jo 7c78d1b62f Split languages tests (#91) 2024-11-21 13:10:03 +08:00
j178 da3df1d6f8 Reset windows test to 1 job 2024-11-21 11:52:03 +08:00
Jo 51448afc3b Use local hook in tests (#86) 2024-11-21 11:45:41 +08:00
Lemon f4b0ec9088 feat: support docker language (#67)
* feat: support docker language

* CI: instead using libc crate for unix

* refactor: remove regex-lite

* Tweak some style

* Avoid usage of `unwrap`

* test: docker in docker test and behavior test

* merge master

* refactor: return `path` if it can't get container_id

* ci: disable windows and macOS docker test

* fix: linux docker in windows docker, path separator don't replace

* ci: default disable docker test

* ci: update snapshot

* Style tweak

* Simplify test

* Minor

* Enable only for linux

---------

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2024-11-20 22:07:31 +08:00
Jo 5038bc0c85 Add test cases for local repo hook (#85)
* add local test

* fix

* simplify
2024-11-20 20:45:18 +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
j178 b9d92799cc Include licenses of pre-commit and identity 2024-11-18 23:20:51 +08:00
Jo f46c52c3a9 Improve hook output display (#79)
* Improve hook output display

and reduce axoupdater features

* Fix test
2024-11-18 17:50:29 +08:00
Jo 92c7e00f15 Improve uv installation (#78)
- Pin uv version
- Use unmanaged installation
- Enable installer verbose
2024-11-18 17:01:34 +08:00
j178 8859682438 Fix release archive name 2024-11-18 15:52:31 +08:00
j178 9a38fe5641 Fix homebrew formula name 2024-11-18 15:39:47 +08:00
Jo d4015b4d67 Bump version to v0.0.3 (#77) v0.0.3 2024-11-18 15:22:22 +08:00
Jo 6ee33339bc Add profiler (#71)
* Add profiler

* install uv
2024-11-18 15:12:45 +08:00
Jo c6cb534fbf Rename pypi package to pre-commit-rusty (#76) 2024-11-18 15:11:36 +08:00
Jo 04cb26c711 Publish to crates.io (#75)
* Publish to crates.io

* Publish to crates.io

* Add binstall
2024-11-18 14:26:29 +08:00
Jo 29e91e8070 Add copyright of the original pre-commit to LICENSE (#74) 2024-11-18 11:03:50 +08:00
Jo 27075561e9 Check uv installed after accquired lock (#72) 2024-11-17 23:14:07 +08:00
Jo f0ba4d03fe Publish to PyPI (#70)
* Publish to PyPI

* Fix build binaries

* Fix name

* add workflow call

* Bump to macos-15, as macos-12 will be unsupported
2024-11-17 18:27:36 +08:00
j178 87ec72dba2 Add contributors to changelog 2024-11-16 23:30:53 +08:00
Jo 85aed24fb8 Bump version to v0.0.2 (#69) v0.0.2 2024-11-16 23:09:43 +08:00
Jo d70df55f89 Add pre-commit self udpate (#68) 2024-11-16 22:29:38 +08:00
Jo 20c6677da0 Auto install uv (#66)
* Auto install uv

* Remove setup-uv from ci

* fix

* Revert "Remove setup-uv from ci"

This reverts commit 019c4cf60d.
2024-11-16 18:49:45 +08:00
Jo 2aec6f0c90 Fix stage operate_on_files (#65) 2024-11-14 18:26:23 +08:00
Jo 4f1b8c9b9b Skip empty config argument (#64)
* Skip empty config argument

* fix clippy
2024-11-14 18:11:58 +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 175f102b69 Use fancy-regex (#62) 2024-11-14 15:28:27 +08:00
heyjude 1c1ef91222 feat: add fail language support (#60) 2024-11-14 14:06:07 +08:00
j178 7483cd6687 Update installation 2024-11-13 14:53:53 +08:00
j178 72507baa7e Add a readme warning 2024-11-12 21:15:58 +08:00
j178 892213d146 Rename to_install to to_run 2024-11-11 23:00:23 +08:00
Jo 3739e8ae63 Implement pre-commit sample-config (#37) 2024-11-11 20:51:14 +08:00
Jo 93a9fddea8 Implement pre-commit uninstall (#36)
* Implement `pre-commit uninstall`

* Add tests
2024-11-11 20:32:44 +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
j178 26feed3bab Revert "Skip manual stage"
This reverts commit 8309dffbb5.
2024-11-11 11:49:24 +08:00
j178 8309dffbb5 Skip manual stage 2024-11-10 17:46:19 +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
j178 f25c63891d Rename module 2024-11-10 16:42:12 +08:00
j178 9672a4f0a8 Some renames 2024-11-10 16:19:17 +08:00
Jo 7bd22658d0 Implement pre-commit clean (#24)
* Implement `pre-commit clean`

* Fix tests
2024-11-10 16:01:31 +08:00