mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
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 <dhruvmanila@gmail.com>
This commit is contained in:
parent
24524771f2
commit
c487b99e93
1 changed files with 19 additions and 1 deletions
20
README.md
20
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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue