Simplify working on python monorepos that use pyenv.
- Automatically select the python interpreter when you open a file
- Automatically picks the right interpreter when you're debugging a project (it performs the same search than it does to figure out the right one when opening the file: it looks at the
program
key of the debug configuration and if that's missing, it uses thecwd
key). - Adds a command to the palette so that you can set pytest to use the tests of the current active project (better results are achieved by setting the
testpaths
on the[tool.pytest.ini_options]
section ofpyproject.toml
)
- If you use
pyenv
to manage you virtual environments - If you use
poetry
to manage your dependencies - If you use
pytest
to manage your tests
I don't mind reviewing a PR adding more scenarios as long as they don't break mine :)
This extension is licensed under the MIT License.
Special thanks to @ihsan-96 for building the Poetry Monorepo extension (and licensing it as MIT). I used that as the base of this work.