What does the Astral team recommend for setting up their tools on a new machine? Install uv with curl, manage python versions and projects from there and install ruff with uv?
If you have some other tool manager on your system (e.g. mise) then you can likely install uv through that.