If you want a guided setup for dependencies and git hooks, run the helper scripts in the source tree root:
tools/setup-dev.sh configures the commit template and hooks, then offers to run the distro-specific install script (Debian-based by default; Alpine, Arch, and RPM-based distros are auto-detected when possible).
tools/setup-dev.sh configures hooks and asks whether to run the Homebrew setup (tools/macos-setup-brew.sh, default) or the non-Homebrew script (tools/macos-setup.sh).
tools/setup-dev.ps1 (PowerShell) to configure hooks; follow Section 2.3, “Windows” for platform setup details.