From c487b99e939bdba7f5b3932b8c84f2425e45b495 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 3 Jul 2024 14:39:58 -0400 Subject: [PATCH] Add standalone installers to Ruff installation in README (#12163) Note this is already included in our installation page at `docs/installation.md` --------- Co-authored-by: Dhruv Manilawala --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b5820c3d577bac..8f685ca0d51e5c 100644 --- a/README.md +++ b/README.md @@ -116,10 +116,28 @@ For more, see the [documentation](https://docs.astral.sh/ruff/). ### Installation -Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI: +Install Ruff 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" +``` + +Or, from [PyPI](https://pypi.org/project/ruff/): + +```shell +# With pip. pip install ruff + +# With pipx. +pipx install ruff ``` You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),