mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
![]() ## Summary I noticed that `init_environment` and `find_interpreter` were both calling `find_environment`, which seemed like a code smell to me. Instead, `find_interpreter` now returns either a compatible environment or an interpreter (if no compatible environment was found). Additionally, `interpreter_meets_requirements` now no longer validates `requires-python` if `--python` or `.python-version` is set. Instead, we warn, which matches the behavior we get when creating a new environment at the bottom of `find_interpreter`. In total, I think this makes the data flow in project interpreter discovery less repetitive and easier to reason about. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |