Update the target Python version for Ruff to 3.7 in the `uv` module (#15183)
This fixes our Ruff target Python version for our Python module, which
avoids it enforcing things that break compatibility like
https://github.com/astral-sh/uv/issues/15176
---------
Co-authored-by: arielle <me@arielle.codes>