From c30ce4fbc551c2a7b25b1bc89ea3142e11d68f53 Mon Sep 17 00:00:00 2001 From: Pratiksha <128999446+Prab-27@users.noreply.github.com> Date: Wed, 11 Mar 2026 04:37:53 +0530 Subject: [PATCH] [v3-1-test] Update the UV command for upgrading tools in the Contributing docs (#61756) * update uv command in contributing doc * add uv command in introduction and remove from prek related commands (cherry picked from commit 7c45e6860e863f2dcccb87396612442945059573) Co-authored-by: Pratiksha <128999446+Prab-27@users.noreply.github.com> --- contributing-docs/03_contributors_quick_start.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contributing-docs/03_contributors_quick_start.rst b/contributing-docs/03_contributors_quick_start.rst index b331b1dc610aa..b61b1989a8b9b 100644 --- a/contributing-docs/03_contributors_quick_start.rst +++ b/contributing-docs/03_contributors_quick_start.rst @@ -261,6 +261,14 @@ To avoid burden on our CI infrastructure and to save time, prek hooks can be run Installing prek is best done with ``uv`` (recommended) or ``pipx``. +You can also update the tools installed with UV, including ``prek``. + + Run the following command to upgrade all UV-managed tools: + + .. code-block:: bash + + uv tool upgrade --all + 1. Installing required packages on Debian / Ubuntu, install via @@ -285,6 +293,7 @@ on macOS, install via uv tool install prek + or with pipx: .. code-block:: bash @@ -361,6 +370,7 @@ It will run prek hooks automatically before committing and stops the commit on f cd ~/Projects/airflow prek uninstall + - For more information on this visit |08_static_code_checks.rst| .. |08_static_code_checks.rst| raw:: html