You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uv pip compile doesn't read pyproject.toml or .python-version to default the --python-version flag (astral-sh/uv#9581). Running uv pip compile --python-version=$(cat .python-version) is an acceptable workaround, but this doesn't work using the pip-compile pre-commit hook because pre-commit just passes the arguments as literal strings and uv pip compile can't do the variable expansion dynamically.
Are there any recommended ways to not have to hardcode --python-version here?
The text was updated successfully, but these errors were encountered:
uv pip compile
doesn't readpyproject.toml
or.python-version
to default the--python-version
flag (astral-sh/uv#9581). Runninguv pip compile --python-version=$(cat .python-version)
is an acceptable workaround, but this doesn't work using thepip-compile
pre-commit hook because pre-commit just passes the arguments as literal strings anduv pip compile
can't do the variable expansion dynamically.Are there any recommended ways to not have to hardcode
--python-version
here?The text was updated successfully, but these errors were encountered: