diff options
| author | Devin Doucette <[email protected]> | 2026-03-18 09:37:33 -0600 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-18 09:37:33 -0600 |
| commit | f88b1f82153d2043597c27534645d7b957179309 (patch) | |
| tree | 22b921e082bb5f70ef52275c37931de18f77f710 /README.md | |
| parent | Add natvis for Compact Binary (#860) (diff) | |
| download | zen-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 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ commit. * You can install using `winget install python3` * Run `pip install pre-commit==3.2.0` (later versions may or may not work) * If you want the pre-commit steps to be run at commit time (which is recommended) you can - run `pre-commit install` within your local repo. + run `python -m pre_commit install` within your local repo. Once you have pre-commit installed, it's convenient to use the provided xmake task to trigger it manually to apply clang-format rules. You can do this by running `xmake precommit` on the command |