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

207 Commits

Author SHA1 Message Date
Jo 8dfb3101ff Rename project name to prefligit (#118)
* Rename project to `prefligit`

* Bump to 0.0.6

* Fix tests

* Add a rename note
v0.0.6
2024-12-03 13:20:00 +08:00
Jo 247ed4a990 Use new cache key to refresh clippy cache (#116)
* Use new cache key to refresh clippy cache

* Rerun ci to see cache usage
2024-11-25 16:23:15 +08:00
Jo b4db4408a0 Run cargo clippy in the dev drive workspace (#115)
* Run `cargo clippy` in the dev drive workspace

* Rerun ci to see cache usage

* Shrink dev drive
2024-11-25 15:50:15 +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 df23edb255 Try to improve cargo clippy (#108)
* Try to improve cargo clippy

* Rerun ci to see cache usage
2024-11-23 23:35:28 +08:00
Jo 686b69f7a3 Remove intermedia Language enum (#107)
* Remove intermedia Language enum

* fix

* Simplify
2024-11-23 23:27:27 +08:00
Jo 3113e8400a Improve tests (#106)
* Improve tests

* Fix
2024-11-23 21:34:48 +08:00
Jo 4ddc3cf93f Make uv tests on Windows run sequentially (#104)
* Make uv tests on Windows run sequentially

* Fix
2024-11-23 19:46:15 +08:00
xmchx 81455fbf5c feat: support pre-commit init-templatedir (#101)
* feat: support init-templatedir

* chore: update

* Fix and add test

---------

Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
2024-11-23 01:18:30 +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 478ab2c5eb Fix pre-commit intall --hook-type name (#102)
* Fix `pre-commit intall --hook-type` name

* Fix test

* Add a test
2024-11-22 17:38:15 +08:00
j178 6381eb3ce0 Remove profiler from CI job 2024-11-22 14:51:35 +08:00
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