1082 shaares
609 private links
609 private links
In short, add
layout python3
to .envrc.
To customize the name of the virtualenv that direnv automatically creates, add the line export VIRTUAL_ENV=your_venv_name to the top of the file.
- https://github.com/direnv/direnv/wiki/Python - official docs
- https://github.com/direnv/direnv/issues/1264 - Activate python venv by default?
- https://github-wiki-see.page/m/direnv/direnv/wiki/Python
- https://stackabuse.com/managing-python-environments-with-direnv-and-pyenv
- https://www.keiruaprod.fr/blog/2023/01/26/using-direnv.html
And also, completely new to me, it is possible to use direnv with Github Actions (with a complete example in the direnv docs)!