-
-
Notifications
You must be signed in to change notification settings - Fork 68
Support language: lua hooks
#954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
|
One quick question, what is |
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
|
@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. |
|
Thank you! |
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.