fix: disable poetry plugin output #2482
Open
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
When using poetry, with the suggested
init_hook
from the docs:and running
devbox shell
, while the poetry env is being loaded, it generates this log:Using virtualenv: /home/fotiadis/src/work/trumo/services/tc_gateway_consumer/.venv
This can be problematic to users instant prompt like the very famous zsh theme powerlevel10k
By adding the
--quiet
flag this solves the problemWhat about poetry 2.0?
poetry 2.0 has removed the
poetry shell
(the functionality still exists if you download a plugin). The new way to achieve the same behavior according to the docs is:eval $(poetry env activate)
This change doesn't impact either major versions of poetry, and it will continue to work as normal
How was it tested?
By disabling the current poetry plugin, and creating a new one that is the exact copy, just with the flag on