From 62f94de35c770b2a55233e18541f60f00a19b157 Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Tue, 24 Feb 2026 12:18:21 +0100 Subject: [PATCH] uv_python module: format documentation block --- plugins/modules/uv_python.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/modules/uv_python.py b/plugins/modules/uv_python.py index 20e723965e..ecd6b91fe9 100644 --- a/plugins/modules/uv_python.py +++ b/plugins/modules/uv_python.py @@ -26,20 +26,20 @@ options: description: - Desired state of the specified Python version. - | - C(present) ensures the specified version is installed. + V(present) ensures the specified version is installed. If a full patch version is specified (for example C(3.12.3)), that exact version will be installed if not already present. If only a minor version is specified (for example 3.12), the latest available patch version for that minor release is installed only if no patch version for that minor release is currently installed (including patch versions not managed by C(uv)). RV(python_versions) and RV(python_paths) lengths are always equal to one for this state. This state uses C(uv python install) command. - | - C(absent) ensures the specified version is removed. If a full patch version is specified, only that exact patch version is removed. + V(absent) ensures the specified version is removed. If a full patch version is specified, only that exact patch version is removed. If only a minor version is specified (for example C(3.12)), all installed patch versions for that minor release are removed. If the specified version is not installed, no changes are made. RV(python_versions) and RV(python_paths) lengths can be higher or equal to one for this state. This state uses C(uv python uninstall) command. - | - C(latest) ensures the latest available patch version for the specified version is installed. + V(latest) ensures the latest available patch version for the specified version is installed. If only a minor version is specified (for example C(3.12)), the latest available patch version for that minor release is always installed. If another patch version is already installed but is not the latest, the latest patch version is installed. The latest patch version installed depends on the C(uv) version, since available Python versions are frozen per C(uv) release. @@ -50,19 +50,19 @@ options: default: present attributes: check_mode: - description: Can run in check_mode and return changed status prediction without modifying target. - support: full + description: Can run in check_mode and return changed status prediction without modifying target. + support: full diff_mode: - description: Returns details on what has changed (or possibly needs changing in check_mode), when in diff mode. - support: none + description: Returns details on what has changed (or possibly needs changing in check_mode), when in diff mode. + support: none notes: seealso: -- name: uv documentation - description: Python versions management with uv. - link: https://docs.astral.sh/uv/concepts/python-versions/ -- name: uv CLI documentation - description: uv CLI reference guide. - link: https://docs.astral.sh/uv/reference/cli/#uv-python + - name: uv documentation + description: Python versions management with uv. + link: https://docs.astral.sh/uv/concepts/python-versions/ + - name: uv CLI documentation + description: uv CLI reference guide. + link: https://docs.astral.sh/uv/reference/cli/#uv-python author: Mariam Ahhttouche (@mriamah) '''