juftin / hatch-pip-compile

hatch plugin to use pip-compile (or uv) to manage project dependencies and lockfiles
http://juftin.com/hatch-pip-compile/
MIT License
74 stars 3 forks source link

How can I use this plugin using hatch config `dirs.env.virtual`? #71

Closed jinserk closed 7 months ago

jinserk commented 7 months ago

Hi,

I love to make a "lock" file in my project, but when I use this plugin, I found the config setting dirs.env.virtual is not working anymore. Is there way to use hatch-pip-compile with dirs.env.virtual setting? I need this becase of VScode integration: https://github.com/pypa/hatch/issues/600

juftin commented 7 months ago

🤦 I should have put this in the docs - I'll get it added. You'll want to set dirs.env.pip-compile on your hatch config file

Here's mine:

[dirs.env]
virtual = ".venv"
pip-compile = ".venv"

You can also do this from the command line:

hatch config set dirs.env.pip-compile ".venv"
jinserk commented 7 months ago

@juftin You saved my day! Thank you so much!