uv
uv copied to clipboard
Allow creating a virtual environment in a folder with existing files
❯ lsd --tree .venv/
.venv
└── magic.txt
~/git/github/tox-uv on main [!?⇕]
❯ uv venv
Using Python 3.12.1 interpreter at: /Users/bgabor8/.pyenv/versions/3.12.1/bin/python3
Creating virtualenv at: .venv
uv::venv::creation
× Failed to create virtualenv
╰─▶ The directory `.venv` exists, but it's not a virtualenv
tox likes to put a few other files (tmp folder, .tox-info.json, etc) in this folder that breaks uv venv....
Is fine if is hidden behind a --allow-extra-content flag.
I wonder if this should just be gated by a simple --force flag.
Works for me 😀