From 8df4983057b5e6ea80da096dde540db9df8324d5 Mon Sep 17 00:00:00 2001 From: InSync Date: Mon, 9 Dec 2024 15:25:18 +0700 Subject: [PATCH] Promote uv in installation guides (#14056) > [Because this is an Astral repository ;)](https://github.com/astral-sh/packse/pull/183) [Originally reported](https://discord.com/channels/1039017663004942429/1039017663512449056/1302319421204729906) by clearfram3 on Discord. `grep`ping for `pip install` in `.md` files reveals a few other places where the same fix might be applicable. --------- Co-authored-by: Micha Reiser --- README.md | 4 ++++ docs/faq.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 85040af1a4f69..ba915c449e185 100644 --- a/README.md +++ b/README.md @@ -119,6 +119,10 @@ For more, see the [documentation](https://docs.astral.sh/ruff/). Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI: ```shell +# With uv. +uv add --dev ruff # to add ruff to your project +uv tool install ruff # to install ruff globally + # With pip. pip install ruff diff --git a/docs/faq.md b/docs/faq.md index 3718b85c0b6cc..42b24904d4305 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -223,6 +223,11 @@ Ruff is installable under any Python version from 3.7 onwards. Nope! Ruff is available as [`ruff`](https://pypi.org/project/ruff/) on PyPI: ```console +# With uv. +$ uv add --dev ruff # to add ruff to your project +$ uv tool install ruff # to install ruff globally + +# With pip $ pip install ruff ```