From a58db4f023012ab9d5ab6127d742603905d491bf Mon Sep 17 00:00:00 2001 From: V <119791676+vmexe@users.noreply.github.com> Date: Sat, 12 Sep 2026 11:58:34 +0100 Subject: [PATCH] docs: fix pre-commit setup instructions (#556) Co-authored-by: vmexe --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 224763419..552b4ba64 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,14 @@ starting a large change. Set up the clang-format hook after cloning: -```powershell -python -m pip install pre-commit +Install `pre-commit` using the method appropriate for your platform: + +- **Arch Linux / CachyOS:** `sudo pacman -S pre-commit` +- **Other Linux / macOS / Windows:** `python -m pip install pre-commit` + +Then install the Git hook: + +```bash python -m pre_commit install --install-hooks ```