ohmyzsh/plugins/poetry-env
Andrii Barabash e552394abb
Fixed poetry-env plugin for Poetry >=2.0.0
Since version 2.0.0 poetry stopped using '[project.tool]' section in `pyproject.toml`. So the plugin didn't work for the newer poetry version.

With this change, the plugin will check for `pyproject.toml` and `poetry.lock` files to reliably check if it's a poetry project. In my testing, it worked with both poetry versions 1.8.5 and 2.0.1.
2025-02-19 21:49:24 +01:00
..
poetry-env.plugin.zsh Fixed poetry-env plugin for Poetry >=2.0.0 2025-02-19 21:49:24 +01:00
README.md style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00

Poetry Environment Plugin

This plugin automatically changes poetry environment when you cd into or out of the project directory. Note: Script looks for pyproject.toml file to determine poetry if its a poetry environment

To use it, add poetry-env to the plugins array in your zshrc file:

plugins=(... poetry-env)