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

165 Commits

Author SHA1 Message Date
Jo fc54f145d9 Fix some tests isolation when git commit (#1365)
* Fix some tests isolation when `git commit`

* Fix rust cache save
2026-01-16 11:27:52 +08:00
renovate[bot] 7fd2da8a77 Update taiki-e/install-action action to v2.65.11 (#1364) 2026-01-15 22:43:07 +08:00
Jo 34fb8f3ecc Refactor CI workflow and cargo profile (#1361) 2026-01-15 16:54:52 +08:00
Jo f929d78c6e Add a renovate rule to update github actions version in README (#1360) 2026-01-15 11:43:37 +08:00
renovate[bot] f1533e1497 Update GitHub Actions (#1357) 2026-01-15 11:18:30 +08:00
renovate[bot] 541df23466 Update actions/upload-artifact action to v6 (#1359) 2026-01-15 11:18:17 +08:00
Jo fb857e62f5 Build and upload binaries in CI (#1340)
* Debug command line length

* Build binaries

* Revert "Debug command line length"

This reverts commit d17610dc0c.
2026-01-13 17:12:27 +08:00
Jo c1ec7c8dd4 Add an ecosystem test for CPython (#1336) 2026-01-12 19:15:55 +08:00
Jo 50684fbdcf Drop powerpc64 wheels (#1319) 2026-01-07 22:05:42 +08:00
renovate[bot] 754c89c0a6 Update GitHub Actions (#1297) 2026-01-03 20:10:10 +08:00
renovate[bot] b300081a01 Update GitHub Actions (#1296) 2026-01-03 16:30:03 +08:00
Jo ad5c0dfb6a Generate JSON schema for prek configuration (#1270)
* Generate JSON schema for prek configuration

* Fix schema for `Repo` enum

* Test in CI
2025-12-23 16:31:05 +08:00
Jo d96e4d64ed Fix "Check tag consistency" in build-docker workflow (#1266) 2025-12-23 11:33:46 +08:00
Jo 9e7b674c7f Fix docker tags (#1257) 2025-12-22 11:30:13 +08:00
Jo 02414edb56 Render changelog in document site (#1248)
# Conflicts:
#	.github/workflows/release.yml
2025-12-22 00:49:01 +08:00
Jo 885812e7ca Fix build-docker job permission (#1255) 2025-12-22 00:41:06 +08:00
Jo 997c89c268 Build and publish docker image to ghcr.io/j178/prek (#1253) 2025-12-22 00:26:49 +08:00
Jo 9dd875d8c2 Bump taiki-e/install-action to v2.63.3 (#1230) 2025-12-15 22:40:05 +08:00
renovate[bot] eebe0b5fab Update GitHub Actions (#1219) 2025-12-13 20:10:57 +08:00
Jo adf92b0f1b Set renovate minimumReleaseAge to 14 days (#1189) 2025-12-04 14:46:46 +08:00
renovate[bot] 616c80531b Update GitHub Actions (#1166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-01 11:28:31 +08:00
renovate[bot] 373ed413bc Update actions/checkout action to v6 (#1128) 2025-11-21 07:20:46 +08:00
Jo f46e6f9011 Fix npmjs publish action 2025-11-16 19:44:28 +08:00
Jo 7e06cffa70 Bump version to 0.2.15-alpha.3 (#1091)
* Fix release

* Bump version to 0.2.15-alpha.3
2025-11-16 19:26:06 +08:00
Jo 8292d951b8 Prepare for publishing to crates.io (#1088)
* Add descriptions for crates

* Add version

# Conflicts:
#	Cargo.toml

* Add action

* Fix
2025-11-16 17:36:51 +08:00
renovate[bot] 16edd6479a Update dependency node to v24 (#1080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-15 13:31:52 +08:00
renovate[bot] 2c29a40b3b Update GitHub Actions (#1078) 2025-11-15 13:13:43 +08:00
Jo 2765bdee15 Save rust cache for CI jobs on main only (#1056)
Take inspiration from https://github.com/astral-sh/ruff/pull/21359
2025-11-10 17:39:59 +08:00
Jo 45e33109ad Remove examples directory (#1047) 2025-11-08 15:02:31 +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
Jo ee0acf25a3 Rename pty crate to prek-pty (#1025) 2025-11-03 22:16:22 +08:00
Jo f6d873c48e Vendor yaml-merge-keys to reduce dependencies (#1024) 2025-11-03 20:36:23 +08:00
renovate[bot] e14219154d Update taiki-e/install-action action to v2.62.45 (#1007)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-03 19:38:24 +08:00
Jo e608155aaf Disable renovate update for ilammy/msvc-dev-cmd (#1023) 2025-11-03 19:36:04 +08:00
is-alnilam d9baf0a5f1 Add Ruby support (no download support yet) (#993)
* Add Ruby support (no download support yet)

Currently only pre-existing Rubies are used, although the code will
search for and consider multiple versions. This allows a hook to require
3.4.7 when the default system Ruby is 3.4.6, but RVM (or a similar tool)
has installed 3.4.7. If a suitable Ruby cannot be found, the user is
prompted to install one manually and re-run.

Hooks get an isolated GEM_HOME, based on the hook repository, any
additional_dependencies, and the interpreter version/path. Any Ruby
upgrade would therefore re-install the gems to ensure that stale
versions aren't used. Repository gem dependencies are installed based on
the included gemspec files, combined with the additional_dependencies
field.

* Add pins for CI 'install Ruby' action

* Update setup-ruby pin

* Tweak version parsing

* Tweak env vars

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-11-03 19:12:25 +08:00
renovate[bot] df6179017c Update dependency python to 3.14 (#1013) 2025-11-01 12:00:26 +08:00
renovate[bot] a69adc3791 Update GitHub Actions and speed up Windows CI (#1001)
* Update GitHub Actions

* Try to speed up windows CI

* Use `leafo/gh-actions-luarocks`

* Fix luarocks install failure

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-31 17:41:46 +08:00
Jo 6e69f990a9 Bump Rust toolchain to 1.91 (#1004)
* Bump Rust toolchain to 1.91

* Fix lint
2025-10-31 16:30:30 +08:00
renovate[bot] b1d9fc1e62 Update GitHub Actions (#1003)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-31 15:24:12 +08:00
Jo 8470e0424a Remove hotpath profiling (#991)
The profiling isn’t very useful right now - it’s way too sensitive to noise. What we really need is proper benchmarking that runs multiple times to filter out all that noise, like what you get with https://codspeed.io/ or https://bencher.dev/
2025-10-29 21:11:23 +08:00
Jo 59b82c7539 Warmup cache before run hotpath profiling 2025-10-29 17:12:33 +08:00
Jo a1b6d2821e Refactor bloat-check and hotpath workflow (#990)
* Refactor `bloat-check` and `hotpath` workflow

* Use faster profiling  profile

* Fix template injection issue

* Tweak
2025-10-29 17:00:38 +08:00
Jo e366cc2679 Fix hotpath profile comparison results path 2025-10-28 21:16:54 +08:00
Jo 83fa8234e1 Fix pr-commit reading result path (#986) 2025-10-28 18:08:06 +08:00
Jo 2fa29a7473 Fix pr-commit action (#985) 2025-10-28 17:50:23 +08:00
Louis Maddox 65a2fe22a6 Profile latency and allocations with hotpath (#956)
* perf(hotpath): profile prek run on its own repo

* Combine pr comments

* Fix path

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-28 17:41:47 +08:00
Jo b6c6ba8461 Fail windows CI when an error occured (#971)
* Fail windows CI when an error occured

* Fix tests
2025-10-26 19:04:02 +08:00
Les Freire ed3f357f85 Support language: lua hooks (#954)
* Add Lua language support

Refactor Lua integration: streamline async functions and improve rockspec file handling

Add Lua and LuaRocks installation steps to CI workflow

Add MSVC development command to CI workflow

Update CI workflow to specify Windows-only dependencies for MSVC and Lua installations

Update CI workflow to use official Lua and LuaRocks GitHub actions

Update CI workflow to specify Windows-only dependencies for Lua and LuaRocks installations

Update CI workflow to use PowerShell for Cargo test execution and improve command formatting

Add platform-specific command snapshots for Lua tests

Enhance the Lua test environment by adding separate command snapshots for Windows and non-Windows platforms. This ensures accurate output handling based on the operating system, improving test reliability and clarity.

Update CI workflow to use specific versions of Lua and LuaRocks actions

Refactor Lua dependency installation and update test cases

Refactor Lua command execution to streamline environment path handling

Fix dependencies installing

Fix remote repo hook

* Add lua remote_hook test

* Tweaks

---------

Co-authored-by: Jo <10510431+j178@users.noreply.github.com>
2025-10-24 19:36:38 +08:00
Jo b86327004f Hardening github actions (#947)
* Hardening github actions

* Add config

* Fix comment
2025-10-21 14:17:22 +08:00
Jo 9c2cf54a6c Fix bloat-comment action (#948) 2025-10-21 12:06:49 +08:00