Closed edgarrmondragon closed 4 months ago
This file is supported by pyenv, actions/setup-python and uv to select a Python version.
Currently Hatch supports interpreter selection via:
The environment's python field.
python
[tool.hatch.envs.<ENV_NAME>] python = "3.10"
https://hatch.pypa.io/latest/config/environment/overview/#python-version
The HATCH_PYTHON environment variable.
HATCH_PYTHON
It would be nice if Hatch supported reading the interpreter version from .python-version, and end up with the following priority order:
.python-version
duplicate of https://github.com/pypa/hatch/issues/1126
Oh, should've actually searched through existing issues 😓
This file is supported by pyenv, actions/setup-python and uv to select a Python version.
Currently Hatch supports interpreter selection via:
The environment's
python
field.https://hatch.pypa.io/latest/config/environment/overview/#python-version
The
HATCH_PYTHON
environment variable.It would be nice if Hatch supported reading the interpreter version from
.python-version
, and end up with the following priority order:python
HATCH_PYTHON
.python-version