From 0179ff97dafea84228a11d53d9bbb13229e13ab7 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Fri, 28 Jun 2024 17:04:46 +0530 Subject: [PATCH] Add standalone installer instruction to docs (#12081) Adopted from `uv` README (https://github.com/astral-sh/uv#getting-started), this PR adds a section of using standalone installers in the installation section of Ruff docs. --- docs/installation.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 06486f9817959..c576b05fa9676 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -13,6 +13,20 @@ ruff check # Lint all files in the current directory. ruff format # Format all files in the current directory. ``` +Starting with version `0.5.0`, Ruff can be installed with our standalone installers: + +```shell +# On macOS and Linux. +curl -LsSf https://astral.sh/ruff/install.sh | sh + +# On Windows. +powershell -c "irm https://astral.sh/ruff/install.ps1 | iex" + +# For a specific version. +curl -LsSf https://astral.sh/ruff/0.5.0/install.sh | sh +powershell -c "irm https://astral.sh/ruff/0.5.0/install.ps1 | iex" +``` + For **macOS Homebrew** and **Linuxbrew** users, Ruff is also available as [`ruff`](https://formulae.brew.sh/formula/ruff) on Homebrew: