Reorder installation section in README (#12177)

See https://github.com/astral-sh/ruff/pull/12163#issuecomment-2207016631
This commit is contained in:
Dhruv Manilawala 2024-07-04 14:11:54 +05:30 committed by GitHub
parent 4d385b60c8
commit 6cdf3e7af8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 11 deletions

View File

@ -116,7 +116,17 @@ For more, see the [documentation](https://docs.astral.sh/ruff/).
### Installation
Install Ruff with our standalone installers:
Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI:
```shell
# With pip.
pip install ruff
# With pipx.
pipx install ruff
```
Starting with version `0.5.0`, Ruff can be installed with our standalone installers:
```shell
# On macOS and Linux.
@ -130,16 +140,6 @@ 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),
and with [a variety of other package managers](https://docs.astral.sh/ruff/installation/).