aboutsummaryrefslogtreecommitdiff
path: root/xmake.lua
diff options
context:
space:
mode:
authorDevin Doucette <[email protected]>2026-03-18 09:37:33 -0600
committerGitHub Enterprise <[email protected]>2026-03-18 09:37:33 -0600
commitf88b1f82153d2043597c27534645d7b957179309 (patch)
tree22b921e082bb5f70ef52275c37931de18f77f710 /xmake.lua
parentAdd natvis for Compact Binary (#860) (diff)
downloadzen-f88b1f82153d2043597c27534645d7b957179309.tar.xz
zen-f88b1f82153d2043597c27534645d7b957179309.zip
Allow pre-commit without it being in the PATH (#861)
Running through `python -m pre_commit` avoids the need to have the directory containing `pre-commit` in the PATH. This is preferable when the path is subject to change such as `%LocalAppData%\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages`.
Diffstat (limited to 'xmake.lua')
-rw-r--r--xmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake.lua b/xmake.lua
index bce67364d..8ba4c0a9a 100644
--- a/xmake.lua
+++ b/xmake.lua
@@ -571,7 +571,7 @@ task("precommit")
description = "Run required pre-commit steps (clang-format, etc)",
}
on_run(function ()
- print(os.exec("pre-commit run --all-files"))
+ print(os.exec("python -m pre_commit run --all-files"))
end)
task("sln")