From d193be9e97000ff39f98da7d9be563662655fecb Mon Sep 17 00:00:00 2001 From: kzrnm Date: Wed, 18 Oct 2023 12:02:17 +0900 Subject: [PATCH] return bool --- poethepoet/executor/poetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poethepoet/executor/poetry.py b/poethepoet/executor/poetry.py index da03c904..c282a702 100644 --- a/poethepoet/executor/poetry.py +++ b/poethepoet/executor/poetry.py @@ -22,7 +22,7 @@ class PoetryExecutor(PoeExecutor): def works_with_context(cls, context: "RunContext") -> bool: if "poetry" not in context.config.project["tool"]: return False - return cls._poetry_cmd_from_path() + return bool(cls._poetry_cmd_from_path()) def execute( self, cmd: Sequence[str], input: Optional[bytes] = None, use_exec: bool = False