pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
6.11k stars 310 forks source link

feat: add option to pass arguments to `uv` #1617

Open Aviksaikat opened 4 months ago

Aviksaikat commented 4 months ago

Summary

[tool.hatch.envs.default]
installer = "uv"
pre-released-deps = true 
sirosc commented 4 months ago

Can we make this more general so there is greater ability to specify UV command line options for project installation? For example, we need to use --override overrides.txt in some situations. We've had to set skip-install=false and run uv ourselves in scripts. Tried setting UV_OVERRIDE in env-vars but had no effect.