1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 13:19:13 +00:00

Make code in plugins/modules/uv_python.py more pythonic

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
Mariam Ahhttouche 2026-03-10 15:01:47 +00:00 committed by GitHub
parent 025cf018dc
commit a02743fd76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,8 +123,10 @@ class UV:
self.python_version_str = str(self.python_version)
except (ValueError, AttributeError):
self.module.fail_json(
msg="Unsupported version format. Valid version numbers consist of two or three dot-separated numeric components, \
with an optional 'pre-release' tag on the end (for example 3.12, 3.12.3, 3.15.0a5) are supported in this release."
msg=(
"Unsupported version format. Valid version numbers consist of two or three dot-separated numeric components"
" with an optional 'pre-release' tag on the end (for example 3.12, 3.12.3, 3.15.0a5) are supported in this release."
)
)
def _ensure_min_uv_version(self):