Skip to content

Commit

Permalink
Check for poetry section before trying to install dependencies with p…
Browse files Browse the repository at this point in the history
…oetry
  • Loading branch information
felixschndr committed Oct 15, 2024
1 parent 599de09 commit 4c155fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions AliasesAndFunctions/default/functions
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ pip_install_requirements() {

poetry_install_requirements() {
[[ ! -f pyproject.toml ]] && return 1
if ! grep -q "\[tool.poetry\]" pyproject.toml; then
return 1
fi

echo "Installiere die Abhängigkeiten mit poetry"
eval "poetry install"
Expand Down

0 comments on commit 4c155fa

Please sign in to comment.