Welcome to the README for the "poetry-monorepo" Visual Studio Code extension. This extension is designed to assist in setting the proper interpreter and adding package paths to work seamlessly with Poetry on a monorepo, where multiple Poetry projects coexist.
The "poetry-monorepo" extension offers the following features:
- Automatically sets the Python interpreter based on the closest
pyproject.toml
file in the workspace. - Adds package paths to ensure proper functionality with Poetry in a monorepo setup, linking Python custom modules for improved IDE support.
Note: Screenshots or animations of the extension in action would be added here.
Before using this extension, make sure you have the following requirements:
- Visual Studio Code version 1.85.0 or higher.
- VS Code Python extension version 1.0.5 or higher.
This extension contributes the following settings:
poetryMonorepo.appendExtraPaths
: Option to append extra paths instead of replacing. Set totrue
to retain any extra paths you need. Only set this if you need any other extraPaths retained.
- Install the extension by searching for "poetry-monorepo" in the Visual Studio Code Extensions view.
- Reload or restart Visual Studio Code.
No known issues at the moment.
- Initial release.
- Open a Python file within your monorepo workspace.
- The extension will automatically set the Python interpreter based on the closest
pyproject.toml
file for any active python file. - Optionally, append extra paths by configuring the
poetryMonorepo.appendExtraPaths
setting, Set this only if you need other extraPaths retained. - Enjoy improved IDE support with linked Python custom modules and correct interpreter.
If you encounter any issues or have suggestions, feel free to contribute by opening an issue on the GitHub repository.
This extension is licensed under the MIT License.
Special thanks to the Visual Studio Code team for providing a robust extension platform.
Enjoy!