Skip to content

zeshuaro/vscode-poetry

Repository files navigation

Python Poetry

VS Code Marketplace Version GitHub license GitHub Actions codecov Codacy Badge code style: prettier

Github-sponsors BuyMeACoffee Ko-Fi LiberaPay Patreon PayPal

Python Poetry support for VS Code to manage Poetry commands.

Installation

Python Poetry can be installed from the VS Code Marketplace or by searching within VS Code.

Features

You can activate the commands by launching the command palette (View > Command Palette) and enter the command name.

Commands

Command Palette Poetry command Description
Install packages poetry install Read the pyproject.toml file, resolve the packages, and install them
Install packages (with options) poetry install [--options] Install the packages with additional options
Add packages poetry add <package> Add required packages to your pyproject.toml and install them
Deprecated Add dev packages poetry add --dev <package> Deprecated, use Add packages instead. Add required dev packages and install them
Remove packages poetry remove <package> Remove packages from the current list of installed packages
Deprecated Remove dev packages poetry remove --dev <package> Deprecated, use Remove packages instead. Remove dev packages
Update all packages poetry update Update all packages from the current list of installed packages
Update all packages (with options) poetry update [--options] Update all packages with additional options
Deprecated Update all packages (ignore dev) poetry update --no-dev Deprecated, use Update all packages (with options) instead. Update all packages without the dev packages
Update selected packages poetry update <package> Update selected packages
Lock packages poetry lock Lock the packages specified in pyproject.toml
Lock packages (no update) poetry lock --no-update Lock the packages without updating the locked versions