MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _get_lua_version

Function _get_lua_version

pre_commit/languages/lua.py:22–25  ·  view source on GitHub ↗

Get the Lua version used in file paths.

()

Source from the content-addressed store, hash-verified

20
21
22def _get_lua_version() -> str: # pragma: win32 no cover
23 """Get the Lua version used in file paths."""
24 _, stdout, _ = cmd_output('luarocks', 'config', '--lua-ver')
25 return stdout.strip()
26
27
28def get_env_patch(d: str) -> PatchesT: # pragma: win32 no cover

Callers 1

get_env_patchFunction · 0.85

Calls 1

cmd_outputFunction · 0.90

Tested by

no test coverage detected