pdm-project / pdm-venv

A plugin for pdm that enables virtualenv management
https://pdm-project.github.io/pdm-venv
MIT License
24 stars 4 forks source link

pdm project config `venv.in_project` is ignored while venv creation #32

Closed xanterx closed 2 years ago

xanterx commented 2 years ago

Describe the bug As mentioned in docs if pdm config venv.in_project is set to true, then virtual-env is created in project directory. This feature is not working while using pdm venv create.

To Reproduce Steps to reproduce the behavior:

  1. Go to project directory (after plugin is installed)
  2. Run command pdm config venv.in_project True and then pdm venv create

Expected behavior A virtual-env should have been created in the project directory.

Current behavior Virtual env is getting created in the location specified under venv.location config

Screenshots NA

System :

Additional context As create method supports in_project argument, but it is always falling back to default value, due to in create command this argument is not passed from the project config.