Skip to content

Commit

Permalink
Add standalone installers to Ruff installation in README (#12163)
Browse files Browse the repository at this point in the history
Note this is already included in our installation page at
`docs/installation.md`

---------

Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
  • Loading branch information
zanieb and dhruvmanila authored Jul 3, 2024
1 parent 2452477 commit c487b99
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

This comment has been minimized.

Copy link
@baggiponte

baggiponte Jul 3, 2024

Contributor

or with uv tool install -- ruff 😏

```

You can also install Ruff via [Homebrew](https://formulae.brew.sh/formula/ruff), [Conda](https://anaconda.org/conda-forge/ruff),
Expand Down

0 comments on commit c487b99

Please # to comment.