Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #954 +/- ##
==========================================
+ Coverage 90.06% 90.16% +0.09%
==========================================
Files 65 66 +1
Lines 12077 12250 +173
==========================================
+ Hits 10877 11045 +168
- Misses 1200 1205 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📦 Cargo Bloat ComparisonBinary size change: +0.00% (16.1 MiB → 16.1 MiB) Expand for cargo-bloat outputPR Branch ResultsBase Branch Results |
Owner
|
One quick question, what is |
Contributor
Author
Sorry, this is a translation error, I have corrected it |
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
Contributor
Author
|
@j178 This PR is ready for review, however, it cannot achieve 100% code coverage due to the lack of implementation for Lua and LuaRocks management. |
Owner
|
Thank you! |
feliblo
pushed a commit
to feliblo/prek
that referenced
this pull request
Oct 29, 2025
* 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>
feliblo
pushed a commit
to feliblo/prek
that referenced
this pull request
Oct 29, 2025
* 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Support
Luahooks #41 , but not yet manage the Lua toolchain(lua,luarocks), consistent withpre-commitNote
Run
cargo testwith thePowerShell(pwsh) shell on Windows to prevent symbolic link conflicts related to Lua dependencies. Failed TestsPerformance
This is the .pre-commit-config.yaml used for testing
Test results
Based on the test results,
prekdemonstrates significantly faster performance thanpre-commitwhen executingLua scripts. However, this performance gap narrows considerably for remote repository hooks, as they compile Lua scripts into executable binaries during the download phase.